]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-x86_64/bug.h
[PATCH] remove all kernel BUGs
[linux-2.6-omap-h63xx.git] / include / asm-x86_64 / bug.h
index 19aed6e78fecc7e86ad5d54d4bb170e09df44069..bdbf66eab6eebb310193f7368361460ee731552b 100644 (file)
@@ -15,11 +15,13 @@ struct bug_frame {
        unsigned short line;
 } __attribute__((packed));
 
+#ifdef CONFIG_BUG
 #define HAVE_ARCH_BUG
 #define BUG() \
        asm volatile("ud2 ; .quad %c1 ; .short %c0" :: \
                     "i"(__LINE__), "i" (__stringify(__FILE__)))
 void out_of_line_bug(void);
-#include <asm-generic/bug.h>
+#endif
 
+#include <asm-generic/bug.h>
 #endif