]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
misc cleanup as a result of the previous patches
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 4 Mar 2014 10:18:28 +0000 (11:18 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 4 Mar 2014 10:18:28 +0000 (11:18 +0100)
This includes:
 * A stale comment in sh_skip_sync()
 * A dead for ever loop in __bug()
 * A prototype for machine_power_off() which unimplemented in any architecture
 * Replacing a for(;;); loop with unreachable()

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/efi/boot.c
xen/arch/x86/mm/shadow/common.c
xen/drivers/char/console.c
xen/include/xen/shutdown.h

index a26e0af766d43c4bee1dd911d0c5874beeab9c73..62c48121179ecd1571129da5c6751e0ddfca57ce 100644 (file)
@@ -201,7 +201,7 @@ static void __init noreturn blexit(const CHAR16 *str)
         efi_bs->FreePages(xsm.addr, PFN_UP(xsm.size));
 
     efi_bs->Exit(efi_ih, EFI_SUCCESS, 0, NULL);
-    for( ; ; ); /* not reached */
+    unreachable(); /* not reached */
 }
 
 /* generic routine for printing error messages */
index b2bd7c2f4325efaa773f1088e7d40303d2818e2d..6eb781e45c121663325140e358aa0ccef826a9f2 100644 (file)
@@ -874,7 +874,6 @@ static int sh_skip_sync(struct vcpu *v, mfn_t gl1mfn)
     SHADOW_ERROR("gmfn %#lx was OOS but not shadowed as an l1.\n",
                  mfn_x(gl1mfn));
     BUG();
-    return 0; /* BUG() is no longer __attribute__((noreturn)). */
 }
 
 
index 532c4263e203c3d4e4241dedf6fb19ba56e74685..7d4383ce6ff9c5286b14f691abfd8985e012f3a7 100644 (file)
@@ -1089,7 +1089,6 @@ void __bug(char *file, int line)
     printk("Xen BUG at %s:%d\n", file, line);
     dump_execution_state();
     panic("Xen BUG at %s:%d", file, line);
-    for ( ; ; ) ;
 }
 
 void __warn(char *file, int line)
index f04905b56f23271cc9f72f5ec4f3fda76b2dacb3..a00bfeffd452aa97476314391dfe0c59e6f07ac5 100644 (file)
@@ -10,6 +10,5 @@ void noreturn dom0_shutdown(u8 reason);
 
 void noreturn machine_restart(unsigned int delay_millisecs);
 void noreturn machine_halt(void);
-void machine_power_off(void);
 
 #endif /* __XEN_SHUTDOWN_H__ */