spl.c: Use __noreturn decorator
authorTom Rini <trini@ti.com>
Tue, 14 Feb 2012 07:29:39 +0000 (07:29 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 26 Mar 2012 21:09:25 +0000 (23:09 +0200)
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Tom Rini <trini@ti.com>
arch/arm/cpu/armv7/omap-common/spl.c

index 9c1f7e3eda6ce2c405b6c4aa123436036b0f2209..3a2d957731040c487523d9b77ad89820b5442d58 100644 (file)
@@ -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;