summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <hemamu@t-base.ne.jp>2007-01-01 01:21:43 +0100
committerPaul Mundt <lethal@linux-sh.org>2007-02-13 02:54:45 +0100
commit86b67ef7518d1fcd4489dc464d4c33a274a1c635 (patch)
tree178485345d72d36e64d8da1f4b890477170c5163
parentsh: Don't set reserved _PAGE_WT bit on SH-3. (diff)
downloadlinux-86b67ef7518d1fcd4489dc464d4c33a274a1c635.tar.xz
linux-86b67ef7518d1fcd4489dc464d4c33a274a1c635.zip
sh: Fix handle_BUG() compile error.
handle_BUG() uses TRAPA_BUG_OPCODE which is only defined for CONFIG_BUG, make sure it's not built when CONFIG_BUG=n. Signed-off-by: Nobuhiro Iwamatsu <hemamu@t-base.ne.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--arch/sh/kernel/traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/traps.c b/arch/sh/kernel/traps.c
index ec110157992d..e91224faf6c4 100644
--- a/arch/sh/kernel/traps.c
+++ b/arch/sh/kernel/traps.c
@@ -156,13 +156,13 @@ static inline void do_bug_verbose(struct pt_regs *regs)
{
}
#endif /* CONFIG_DEBUG_BUGVERBOSE */
-#endif /* CONFIG_BUG */
void handle_BUG(struct pt_regs *regs)
{
do_bug_verbose(regs);
die("Kernel BUG", regs, TRAPA_BUG_OPCODE & 0xff);
}
+#endif /* CONFIG_BUG */
/*
* handle an instruction that does an unaligned memory access by emulating the