From: Tom Rini Date: Tue, 14 Feb 2012 07:29:39 +0000 (+0000) Subject: spl.c: Use __noreturn decorator X-Git-Tag: v2012.04-rc1~19^2~125 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ad1820a3c6b16ada7a73db5720b28a804d321cb9;p=u-boot spl.c: Use __noreturn decorator Acked-by: Mike Frysinger Signed-off-by: Tom Rini --- diff --git a/arch/arm/cpu/armv7/omap-common/spl.c b/arch/arm/cpu/armv7/omap-common/spl.c index 9c1f7e3eda..3a2d957731 100644 --- a/arch/arm/cpu/armv7/omap-common/spl.c +++ b/arch/arm/cpu/armv7/omap-common/spl.c @@ -92,9 +92,9 @@ void spl_parse_image_header(const struct image_header *header) } } -static void jump_to_image_no_args(void) +static void __noreturn jump_to_image_no_args(void) { - typedef void (*image_entry_noargs_t)(u32 *)__attribute__ ((noreturn)); + typedef void __noreturn (*image_entry_noargs_t)(u32 *); image_entry_noargs_t image_entry = (image_entry_noargs_t) spl_image.entry_point; @@ -107,7 +107,6 @@ static void jump_to_image_no_args(void) image_entry((u32 *)boot_params_ptr_addr); } -void jump_to_image_no_args(void) __attribute__ ((noreturn)); void board_init_r(gd_t *id, ulong dummy) { u32 boot_device;