# HG changeset patch
# User Jimi Xenidis <[EMAIL PROTECTED]>
# Node ID 90ffbced39b16124f53e0aaed468a9dc64cafb5b
# Parent  1c351e87e031ada2802fc909b42658132f836e77
[POWERPC][XEN] fix build break in exceptions.c

Building exceptions.c with CRASH_DEBUG=y produces a build break, because
gcc complains about the unused variable.

Signed-off-by: Amos Waterland <[EMAIL PROTECTED]>
---
 xen/arch/powerpc/exceptions.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 1c351e87e031 -r 90ffbced39b1 xen/arch/powerpc/exceptions.c
--- a/xen/arch/powerpc/exceptions.c     Fri Sep 08 13:17:03 2006 -0400
+++ b/xen/arch/powerpc/exceptions.c     Fri Sep 08 13:27:26 2006 -0400
@@ -55,10 +55,10 @@ void do_dec(struct cpu_user_regs *regs)
 
 void program_exception(struct cpu_user_regs *regs, unsigned long cookie)
 {
+    int recover = 0;
 #ifdef CRASH_DEBUG
     __trap_to_gdb(regs, cookie);
 #else /* CRASH_DEBUG */
-    int recover = 0;
 
     show_registers(regs);
     printk("dar 0x%016lx, dsisr 0x%08x\n", mfdar(), mfdsisr());

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@lists.xensource.com
http://lists.xensource.com/xen-ppc-devel

Reply via email to