diff options
Diffstat (limited to 'include/asm-generic')
-rw-r--r-- | include/asm-generic/bug.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index 4c794d73fb84..8af276361bf2 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h | |||
@@ -41,15 +41,14 @@ struct bug_entry { | |||
41 | 41 | ||
42 | #ifndef __WARN | 42 | #ifndef __WARN |
43 | #ifndef __ASSEMBLY__ | 43 | #ifndef __ASSEMBLY__ |
44 | extern void warn_on_slowpath(const char *file, const int line); | ||
45 | extern void warn_slowpath(const char *file, const int line, | 44 | extern void warn_slowpath(const char *file, const int line, |
46 | const char *fmt, ...) __attribute__((format(printf, 3, 4))); | 45 | const char *fmt, ...) __attribute__((format(printf, 3, 4))); |
47 | #define WANT_WARN_ON_SLOWPATH | 46 | #define WANT_WARN_ON_SLOWPATH |
48 | #endif | 47 | #endif |
49 | #define __WARN() warn_on_slowpath(__FILE__, __LINE__) | 48 | #define __WARN() warn_slowpath(__FILE__, __LINE__, NULL) |
50 | #define __WARN_printf(arg...) warn_slowpath(__FILE__, __LINE__, arg) | 49 | #define __WARN_printf(arg...) warn_slowpath(__FILE__, __LINE__, arg) |
51 | #else | 50 | #else |
52 | #define __WARN_printf(arg...) do { printk(arg); __WARN(); } while (0) | 51 | #define __WARN_printf(arg...) do { printk(arg); __WARN(); } while (0) |
53 | #endif | 52 | #endif |
54 | 53 | ||
55 | #ifndef WARN_ON | 54 | #ifndef WARN_ON |