]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-sh/bug.h
x86: update Documentation/i386/boot.txt
[linux-2.6-omap-h63xx.git] / include / asm-sh / bug.h
index 46f925c815aca9918823e4b23607b1e50e833cd4..c01718040166e2141fe68357e57fe637e9f20edf 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
 
@@ -61,7 +61,7 @@ do {                                                  \
 } while (0)
 
 #define WARN_ON(x) ({                                          \
-       typeof(x) __ret_warn_on = (x);                          \
+       int __ret_warn_on = !!(x);                              \
        if (__builtin_constant_p(__ret_warn_on)) {              \
                if (__ret_warn_on)                              \
                        __WARN();                               \
@@ -72,12 +72,7 @@ do {                                                 \
        unlikely(__ret_warn_on);                                \
 })
 
-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>