]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sh64: Fix up the CONFIG_GENERIC_BUG=n build.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 12 Nov 2009 07:39:47 +0000 (16:39 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 12 Nov 2009 07:39:47 +0000 (16:39 +0900)
sh64 doesn't use GENERIC_BUG, which presently causes the handle_BUG()
code to blow up. Fix up the dependencies and get it all building again.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/system.h
arch/sh/kernel/traps.c

index b5c5acdc8c0e546c285d236b651f9207e8fc3c31..c15415b4b169fe9b98b87aa6acb85534227207cd 100644 (file)
@@ -171,10 +171,6 @@ BUILD_TRAP_HANDLER(fpu_error);
 BUILD_TRAP_HANDLER(fpu_state_restore);
 BUILD_TRAP_HANDLER(nmi);
 
-#ifdef CONFIG_BUG
-extern void handle_BUG(struct pt_regs *);
-#endif
-
 #define arch_align_stack(x) (x)
 
 struct mem_access {
index d52695df27020fc4ac15575356a45ec1d4618eaa..7b036339dc92f23a1247e6850ba23f46f4221d22 100644 (file)
@@ -9,8 +9,8 @@
 #include <asm/unwinder.h>
 #include <asm/system.h>
 
-#ifdef CONFIG_BUG
-void handle_BUG(struct pt_regs *regs)
+#ifdef CONFIG_GENERIC_BUG
+static void handle_BUG(struct pt_regs *regs)
 {
        const struct bug_entry *bug;
        unsigned long bugaddr = regs->pc;
@@ -81,7 +81,7 @@ BUILD_TRAP_HANDLER(bug)
                       SIGTRAP) == NOTIFY_STOP)
                return;
 
-#ifdef CONFIG_BUG
+#ifdef CONFIG_GENERIC_BUG
        if (__kernel_text_address(instruction_pointer(regs))) {
                insn_size_t insn = *(insn_size_t *)instruction_pointer(regs);
                if (insn == TRAPA_BUG_OPCODE)