]> err.no Git - linux-2.6/blobdiff - include/asm-i386/bug.h
[IPX]: Annotate and fix IPX checksum
[linux-2.6] / include / asm-i386 / bug.h
index 706eb511c3307de744e0242d5250a54d1a55a4cb..8062cdbf2587f9213a2f0e35c8b536fc92572dec 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef _I386_BUG_H
 #define _I386_BUG_H
 
-#include <linux/config.h>
 
 /*
  * Tell the user there is some problem.
@@ -9,6 +8,8 @@
  * undefined" opcode for parsing in the trap handler.
  */
 
+#ifdef CONFIG_BUG
+#define HAVE_ARCH_BUG
 #ifdef CONFIG_DEBUG_BUGVERBOSE
 #define BUG()                          \
  __asm__ __volatile__( "ud2\n"         \
@@ -18,8 +19,7 @@
 #else
 #define BUG() __asm__ __volatile__("ud2\n")
 #endif
+#endif
 
-#define HAVE_ARCH_BUG
 #include <asm-generic/bug.h>
-
 #endif