summaryrefslogtreecommitdiffstats
path: root/include/asm-sh/system.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-11-23 06:02:20 +0100
committerPaul Mundt <lethal@linux-sh.org>2008-01-28 05:18:56 +0100
commitb000659b1c07f91f0c73bf94bb8922fa740c0ef0 (patch)
tree95f0b6d6b6eae083eb0441ab7f24a99e476fcbab /include/asm-sh/system.h
parentsh: Build fixes for lib32 clear_page. (diff)
downloadlinux-b000659b1c07f91f0c73bf94bb8922fa740c0ef0.tar.xz
linux-b000659b1c07f91f0c73bf94bb8922fa740c0ef0.zip
sh: Fix up bug trap handler build for sh32.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to '')
-rw-r--r--include/asm-sh/system.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-sh/system.h b/include/asm-sh/system.h
index 6b02dfd587ea..8b01fc4a56af 100644
--- a/include/asm-sh/system.h
+++ b/include/asm-sh/system.h
@@ -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)