diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/bug.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index 7d10f962aa13..d209bebf85d2 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h @@ -10,10 +10,8 @@ #endif #ifndef __ASSEMBLY__ -#include <linux/kernel.h> #ifdef CONFIG_BUG - #ifdef CONFIG_GENERIC_BUG struct bug_entry { #ifndef CONFIG_GENERIC_BUG_RELATIVE_POINTERS @@ -32,7 +30,11 @@ struct bug_entry { unsigned short flags; }; #endif /* CONFIG_GENERIC_BUG */ +#endif /* CONFIG_BUG */ +#include <linux/kernel.h> + +#ifdef CONFIG_BUG /* * Don't use BUG() or BUG_ON() unless there's really no way out; one * example might be detecting data structure corruption in the middle |