xen: arm: mark early_panic as a noreturn function
authorIan Campbell <ian.campbell@citrix.com>
Wed, 19 Dec 2012 14:16:30 +0000 (14:16 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 19 Dec 2012 14:16:30 +0000 (14:16 +0000)
Otherwise gcc complains about variables being used when not
initialised when in fact that point is never reached.

There aren't any instances of this in tree right now, I noticed this
while developing another patch.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/include/asm-arm/early_printk.h

index f45f21e6552749b7a64e2c2a47e964b23c4a1de4..a770d4af73af2cb80431f7012c0274d75d40fd78 100644 (file)
@@ -15,7 +15,7 @@
 #ifdef EARLY_UART_ADDRESS
 
 void early_printk(const char *fmt, ...);
-void early_panic(const char *fmt, ...);
+void early_panic(const char *fmt, ...) __attribute__((noreturn));
 
 #else