From: Adrian Bunk <bunk@stusta.de>
To: "Robert P. J. Day" <rpjday@mindspring.com>
Cc: Satyam Sharma <satyam.sharma@gmail.com>,
Krzysztof Halasa <khc@pm.waw.pl>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: any value to "NORET_TYPE" macro?
Date: Fri, 25 May 2007 23:46:33 +0200 [thread overview]
Message-ID: <20070525214633.GJ3899@stusta.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0705251539500.14140@localhost.localdomain>
On Fri, May 25, 2007 at 03:40:18PM -0400, Robert P. J. Day wrote:
> On Sat, 26 May 2007, Satyam Sharma wrote:
>
> > Hi Robert,
> >
> > On 5/25/07, Robert P. J. Day <rpjday@mindspring.com> wrote:
> > > On Fri, 25 May 2007, Satyam Sharma wrote:
> > > ...
> > > > 1. If this is a function _declaration_ (i.e. a prototype in some
> > > > header or some .c file), then remove the NORET_TYPE macro. Also,
> > > > if an ATTRIB_NORET or NORET_AND already exists then you're done.
> > > > Else, introduce an ATTRIB_NORET after the arglist but before ;
> > >
> > > actually, what i would be introducing in all cases is "__noreturn",
> > > the short form currently defined in compiler-gcc.h. and i would be
> > > removing every instance of ATTRIB_NORET and its buddies.
> >
> > Ummm ... you mean we're replacing all occurrences of ATTRIB_NORET
> > as well? Note that NORET_TYPE and ATTRIB_NORET are both defined
> > in the generic include/linux/linkage.h whereas __noreturn is in
> > compiler-gcc.h which is included only for gcc builds -- hence, my
> > preference for ATTRIB_NORET. Also, there is not even a single user of
> > __noreturn anywhere in the kernel code whereas ATTRIB_NORET is used
> > in all these places, which means it looks like to be the standard thing ...
> > Anyway, I'm fine either way.
>
> ah, i hadn't noticed that. i must think on this more. man, i thought
> this was going to be so simple. argh.
It's only an optimization, so defining __noreturn to nothing for other
compilers should work fine.
> rday
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
next prev parent reply other threads:[~2007-05-25 21:46 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-22 13:09 any value to "NORET_TYPE" macro? Robert P. J. Day
2007-05-22 13:53 ` John Anthony Kazos Jr.
2007-05-22 14:01 ` Robert P. J. Day
2007-05-22 14:09 ` Satyam Sharma
2007-05-22 14:16 ` Satyam Sharma
2007-05-22 14:43 ` Krzysztof Halasa
2007-05-22 15:24 ` Satyam Sharma
2007-05-22 19:45 ` Geert Uytterhoeven
2007-05-22 14:47 ` Robert P. J. Day
2007-05-22 13:59 ` Adrian Bunk
2007-05-22 14:04 ` Robert P. J. Day
2007-05-22 16:19 ` Adrian Bunk
2007-05-22 17:04 ` Satyam Sharma
2007-05-22 17:18 ` Robert P. J. Day
2007-05-22 19:25 ` Krzysztof Halasa
2007-05-22 20:17 ` Robert P. J. Day
2007-05-22 20:39 ` Krzysztof Halasa
2007-05-23 8:37 ` Satyam Sharma
2007-05-23 13:09 ` Robert P. J. Day
2007-05-23 13:46 ` Satyam Sharma
2007-05-24 13:10 ` Krzysztof Halasa
2007-05-24 13:25 ` Robert P. J. Day
2007-05-24 17:12 ` Satyam Sharma
2007-05-24 16:43 ` Robert P. J. Day
2007-05-24 18:53 ` Satyam Sharma
2007-05-25 17:33 ` Robert P. J. Day
2007-05-25 17:36 ` Robert P. J. Day
2007-05-25 19:25 ` Satyam Sharma
2007-05-25 19:40 ` Robert P. J. Day
2007-05-25 21:46 ` Adrian Bunk [this message]
2007-05-26 21:56 ` Krzysztof Halasa
2007-05-22 22:41 ` Krzysztof Halasa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070525214633.GJ3899@stusta.de \
--to=bunk@stusta.de \
--cc=khc@pm.waw.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=rpjday@mindspring.com \
--cc=satyam.sharma@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.