[U-Boot] [PATCH] panic: add noreturn attribute

Kumar Gala galak at kernel.crashing.org
Wed Jul 27 15:10:33 CEST 2011


On Jul 27, 2011, at 7:24 AM, Wolfgang Denk wrote:

> Dear Mike Frysinger,
> 
> In message <20110726145430.3E637138EED4 at gemini.denx.de> I wrote:
>> 
>> In message <1309384684-26415-1-git-send-email-vapier at gentoo.org> you wrote:
>>> Since panic() never returns, we should add an appropriate attribute to
>>> let gcc improve optimization around it.
>>> 
>>> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
>>> ---
>>> include/common.h |    2 +-
>>> 1 files changed, 1 insertions(+), 1 deletions(-)
>> 
>> Applied, thanks.
> 
> Arghh... this is causing build warnings for ALL boards:
> 
> vsprintf.c: In function 'panic':
> vsprintf.c:730: warning: 'noreturn' function does return
> 
> 
> Please fix!

http://patchwork.ozlabs.org/patch/106987/

- k


More information about the U-Boot mailing list