Sfoglia il codice sorgente

sh: BUGFLAG_WARNING needs GENERIC_BUG.

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>
Paul Mundt 17 anni fa
parent
commit
e1cd93ea44
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      include/asm-sh/bug.h

+ 2 - 2
include/asm-sh/bug.h

@@ -3,7 +3,7 @@
 
 
 #define TRAPA_BUG_OPCODE	0xc33e	/* trapa #0x3e */
 #define TRAPA_BUG_OPCODE	0xc33e	/* trapa #0x3e */
 
 
-#ifdef CONFIG_BUG
+#ifdef CONFIG_GENERIC_BUG
 #define HAVE_ARCH_BUG
 #define HAVE_ARCH_BUG
 #define HAVE_ARCH_WARN_ON
 #define HAVE_ARCH_WARN_ON
 
 
@@ -77,7 +77,7 @@ struct pt_regs;
 /* arch/sh/kernel/traps.c */
 /* arch/sh/kernel/traps.c */
 void handle_BUG(struct pt_regs *);
 void handle_BUG(struct pt_regs *);
 
 
-#endif /* CONFIG_BUG */
+#endif /* CONFIG_GENERIC_BUG */
 
 
 #include <asm-generic/bug.h>
 #include <asm-generic/bug.h>