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

Mike Frysinger vapier at gentoo.org
Thu Jul 28 02:50:11 CEST 2011


On Wed, Jul 27, 2011 at 05:24, Wolfgang Denk wrote:
> Mike Frysinger wrote:
>> Mike Frysinger 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:

no, it isnt all boards.  if you look at the code, you see it's based
on the CONFIG_PANIC_HANG define.  and all my boards enable that, so i
didnt see any warnings.
-mike


More information about the U-Boot mailing list