Re: any value to "NORET_TYPE" macro?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Satyam Sharma
Date: Wednesday, May 23, 2007 - 6:46 am

Hi Robert,

On 5/23/07, Robert P. J. Day <rpjday@mindspring.com> wrote:

Actually there's another thing :-) The __attribute__((xxx)) must go with the
function _declarations_ (and not the implementations/definitions). I noticed
after my previous mail that most of the double annotations are actually in
the case of the _declarations_ of these non-returning functions, whereas
most of the single-occurrences of NORET_TYPE were in the function
definitions, which means your patch that simply got rid of NORET_TYPE
actually ended up doing exactly the right thing that we wanted :-)

The unfortunate / ugly part, however, is that there are few cases where
the above doesn't hold true ([1] NORET_TYPE without ATTRIB_NORET in
function declaration e.g. in include/asm-mips/ptrace.h -- this must
become ATTRIB_NORET, and [2] ATTRIB_NORET either alone or with
NORET_TYPE in function definitions e.g. arch/mips/kernel/traps.c -- these
can be eliminated entirely, and [3] NORET_AND occurrences where we
don't really want ATTRIB_NORET anymore, so just removing
NORET_TYPE would be right).

So this might not really be a simple patch anymore, and because the
benefit of ATTRIB_NORET is only miniscule, so you can ignore my
previous mail if you want :-)

Thanks,
Satyam
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
any value to &quot;NORET_TYPE&quot; macro?, Robert P. J. Day, (Tue May 22, 6:09 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, John Anthony Kazos Jr., (Tue May 22, 6:53 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Adrian Bunk, (Tue May 22, 6:59 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Robert P. J. Day, (Tue May 22, 7:01 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Robert P. J. Day, (Tue May 22, 7:04 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Satyam Sharma, (Tue May 22, 7:09 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Satyam Sharma, (Tue May 22, 7:16 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Krzysztof Halasa, (Tue May 22, 7:43 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Robert P. J. Day, (Tue May 22, 7:47 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Satyam Sharma, (Tue May 22, 8:24 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Adrian Bunk, (Tue May 22, 9:19 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Satyam Sharma, (Tue May 22, 10:04 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Robert P. J. Day, (Tue May 22, 10:18 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Krzysztof Halasa, (Tue May 22, 12:25 pm)
Re: any value to &quot;NORET_TYPE&quot; macro?, Geert Uytterhoeven, (Tue May 22, 12:45 pm)
Re: any value to &quot;NORET_TYPE&quot; macro?, Robert P. J. Day, (Tue May 22, 1:17 pm)
Re: any value to &quot;NORET_TYPE&quot; macro?, Krzysztof Halasa, (Tue May 22, 1:39 pm)
Re: any value to &quot;NORET_TYPE&quot; macro?, Krzysztof Halasa, (Tue May 22, 3:41 pm)
Re: any value to &quot;NORET_TYPE&quot; macro?, Satyam Sharma, (Wed May 23, 1:37 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Robert P. J. Day, (Wed May 23, 6:09 am)
Re: any value to "NORET_TYPE" macro?, Satyam Sharma, (Wed May 23, 6:46 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Krzysztof Halasa, (Thu May 24, 6:10 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Robert P. J. Day, (Thu May 24, 6:25 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Robert P. J. Day, (Thu May 24, 9:43 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Satyam Sharma, (Thu May 24, 10:12 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Satyam Sharma, (Thu May 24, 11:53 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Robert P. J. Day, (Fri May 25, 10:33 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Robert P. J. Day, (Fri May 25, 10:36 am)
Re: any value to &quot;NORET_TYPE&quot; macro?, Satyam Sharma, (Fri May 25, 12:25 pm)
Re: any value to &quot;NORET_TYPE&quot; macro?, Robert P. J. Day, (Fri May 25, 12:40 pm)
Re: any value to &quot;NORET_TYPE&quot; macro?, Adrian Bunk, (Fri May 25, 2:46 pm)
Re: any value to &quot;NORET_TYPE&quot; macro?, Krzysztof Halasa, (Sat May 26, 2:56 pm)