diff options
Diffstat (limited to 'include/asm-generic/bug.h')
-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 0e9bd9c83870..aa6c093d9ce9 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h | |||
@@ -104,8 +104,10 @@ extern void warn_slowpath_null(const char *file, const int line); | |||
104 | warn_slowpath_fmt_taint(__FILE__, __LINE__, taint, arg) | 104 | warn_slowpath_fmt_taint(__FILE__, __LINE__, taint, arg) |
105 | #else | 105 | #else |
106 | extern __printf(1, 2) void __warn_printk(const char *fmt, ...); | 106 | extern __printf(1, 2) void __warn_printk(const char *fmt, ...); |
107 | #define __WARN() __WARN_TAINT(TAINT_WARN) | 107 | #define __WARN() do { \ |
108 | #define __WARN_printf(arg...) do { __warn_printk(arg); __WARN(); } while (0) | 108 | printk(KERN_WARNING CUT_HERE); __WARN_TAINT(TAINT_WARN); \ |
109 | } while (0) | ||
110 | #define __WARN_printf(arg...) __WARN_printf_taint(TAINT_WARN, arg) | ||
109 | #define __WARN_printf_taint(taint, arg...) \ | 111 | #define __WARN_printf_taint(taint, arg...) \ |
110 | do { __warn_printk(arg); __WARN_TAINT(taint); } while (0) | 112 | do { __warn_printk(arg); __WARN_TAINT(taint); } while (0) |
111 | #endif | 113 | #endif |