aboutsummaryrefslogtreecommitdiffstats
path: root/xen
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2012-12-19 14:16:30 +0000
committerIan Campbell <ian.campbell@citrix.com>2012-12-19 14:16:30 +0000
commit3eab3e1de526c3fcf9ba1317de68d05812e1c623 (patch)
tree9f5729334e403a990057a5100d14f1374c3a1fe0 /xen
parent5a81d6b026ab06123f47e39bc47aedcf23048e6b (diff)
downloadxen-3eab3e1de526c3fcf9ba1317de68d05812e1c623.tar.gz
xen-3eab3e1de526c3fcf9ba1317de68d05812e1c623.tar.bz2
xen-3eab3e1de526c3fcf9ba1317de68d05812e1c623.zip
xen: arm: mark early_panic as a noreturn function
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>
Diffstat (limited to 'xen')
-rw-r--r--xen/include/asm-arm/early_printk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/asm-arm/early_printk.h b/xen/include/asm-arm/early_printk.h
index f45f21e655..a770d4af73 100644
--- a/xen/include/asm-arm/early_printk.h
+++ b/xen/include/asm-arm/early_printk.h
@@ -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