[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xen: arm: mark early_panic as a noreturn function
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1355926590 0 # Node ID f9a0e9b4829d6a841a7393532dc5fff25ba3a750 # Parent b094ba4bf9853e408a710664cb2995b4737cf165 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@xxxxxxxxxx> Acked-by: Tim Deegan <tim@xxxxxxx> Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- diff -r b094ba4bf985 -r f9a0e9b4829d xen/include/asm-arm/early_printk.h --- a/xen/include/asm-arm/early_printk.h Wed Dec 19 14:16:30 2012 +0000 +++ b/xen/include/asm-arm/early_printk.h Wed Dec 19 14:16:30 2012 +0000 @@ -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 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |