$ grep -r HAVE_ARCH_BUG . | grep define | grep -v BUG_ON ./arch/alpha/include/asm/bug.h:#define HAVE_ARCH_BUG ./arch/arm/include/asm/bug.h:#define HAVE_ARCH_BUG ./arch/avr32/include/asm/bug.h:#define HAVE_ARCH_BUG ./arch/blackfin/include/asm/bug.h:#define HAVE_ARCH_BUG ./arch/cris/include/arch-v10/arch/bug.h:#define HAVE_ARCH_BUG ./arch/cris/include/arch-v32/arch/bug.h:#define HAVE_ARCH_BUG ./arch/frv/include/asm/bug.h:#define HAVE_ARCH_BUG ./arch/ia64/include/asm/bug.h:#define HAVE_ARCH_BUG ./arch/m68k/include/asm/bug.h:#define HAVE_ARCH_BUG ./arch/mips/include/asm/bug.h:#define HAVE_ARCH_BUG ./arch/mn10300/include/asm/bug.h:#define HAVE_ARCH_BUG ./arch/parisc/include/asm/bug.h:#define HAVE_ARCH_BUG ./arch/powerpc/include/asm/bug.h:#define HAVE_ARCH_BUG ./arch/s390/include/asm/bug.h:#define HAVE_ARCH_BUG ./arch/sh/include/asm/bug.h:#define HAVE_ARCH_BUG ./arch/sparc/include/asm/bug.h:#define HAVE_ARCH_BUG ./arch/x86/include/asm/bug.h:#define HAVE_ARCH_BUG
#ifdef CONFIG_BUG (...略...) #ifndef HAVE_ARCH_BUG
#define BUG() do { \ printk("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__ ); \ panic("BUG!"); \ } while (0)
#endif (...略...)
#else /* !CONFIG_BUG */ #ifndef HAVE_ARCH_BUG #define BUG()
#endif (...略...) #endif