sh: Fix up bug trap handler build for sh32.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 23 Nov 2007 05:02:20 +0000 (14:02 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 28 Jan 2008 04:18:56 +0000 (13:18 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/system.h

index 6b02dfd587eaffa42f9417a69145d4fc944b94e8..8b01fc4a56afb8ff0e743034e9135ff715cb4fb6 100644 (file)
@@ -194,7 +194,8 @@ asmlinkage void name##_trap_handler(unsigned long r4, unsigned long r5,     \
 
 #define TRAP_HANDLER_DECL                              \
        struct pt_regs *regs = RELOC_HIDE(&__regs, 0);  \
-       unsigned int vec = regs->tra;
+       unsigned int vec = regs->tra;                   \
+       (void)vec;
 #else
 #define BUILD_TRAP_HANDLER(name)       \
 asmlinkage void name##_trap_handler(unsigned int vec, struct pt_regs *regs)