[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


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Thu, 20 Dec 2012 16:11:19 +0000
  • Delivery-date: Thu, 20 Dec 2012 16:11:25 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.