sh: BUGFLAG_WARNING needs GENERIC_BUG.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 8 Nov 2007 09:58:00 +0000 (18:58 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 28 Jan 2008 04:18:39 +0000 (13:18 +0900)
Move the HAVE_ARCH_BUG/HAVE_ARCH_WARN_ON definitions underneath
CONFIG_GENERIC_BUG. This is needed for BUGFLAG_WARNING usage.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/bug.h

index a78d482e8b2f378969fc86b907f8a1625b83b1bd..afb1c2723ec751aa02e3dfc75e093da51b511a67 100644 (file)
@@ -3,7 +3,7 @@
 
 #define TRAPA_BUG_OPCODE       0xc33e  /* trapa #0x3e */
 
-#ifdef CONFIG_BUG
+#ifdef CONFIG_GENERIC_BUG
 #define HAVE_ARCH_BUG
 #define HAVE_ARCH_WARN_ON
 
@@ -77,7 +77,7 @@ struct pt_regs;
 /* arch/sh/kernel/traps.c */
 void handle_BUG(struct pt_regs *);
 
-#endif /* CONFIG_BUG */
+#endif /* CONFIG_GENERIC_BUG */
 
 #include <asm-generic/bug.h>
 
This page took 0.02557 seconds and 5 git commands to generate.