Re: [PATCH 14/14] kernel/exit.c and kernel/panic.c: Remove unusedNORET_TYPE

From: Peter Zijlstra
Date: Wed Dec 16 2009 - 13:53:43 EST


On Wed, 2009-12-16 at 19:51 +0100, Peter Zijlstra wrote:
> On Wed, 2009-12-16 at 00:09 -0800, Joe Perches wrote:
> > Make the functions match the prototypes in <linux/kernel.h>
> > It's defined to nothing and useless
>
> Uhm, why not make it useful again and define it to something like:
>
> #define NORET_TYPE __attribute__((noreturn))
>
> except I guess that should come after the function name, not before.
>
> Annotations that tell a particular function is not supposed to exit
> seems useful to me..

Ah, that got hidden in the header and was done in a different patch.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/