1 #ifndef __ASM_GENERIC_BUG_WRAPPER_H
2 #define __ASM_GENERIC_BUG_WRAPPER_H
4 #include_next <asm-generic/bug.h>
6 #include <linux/version.h>
8 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
10 #define WARN_ON_ONCE(condition) ({ \
11 static int __warned; \
12 int __ret_warn_once = !!(condition); \
14 if (unlikely(__ret_warn_once) && !__warned) { \
18 unlikely(__ret_warn_once); \
21 #endif /* linux kernel < 2.6.19 */