diff options
Diffstat (limited to 'include/asm-generic/bug.h')
-rw-r--r-- | include/asm-generic/bug.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index 1a0e1a7684bd..2632328d8646 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h | |||
@@ -32,11 +32,11 @@ struct bug_entry { | |||
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | #ifndef __WARN | 34 | #ifndef __WARN |
35 | #define __WARN() do { \ | 35 | #ifndef __ASSEMBLY__ |
36 | printk("WARNING: at %s:%d %s()\n", __FILE__, \ | 36 | extern void warn_on_slowpath(const char *file, const int line); |
37 | __LINE__, __FUNCTION__); \ | 37 | #define WANT_WARN_ON_SLOWPATH |
38 | dump_stack(); \ | 38 | #endif |
39 | } while (0) | 39 | #define __WARN() warn_on_slowpath(__FILE__, __LINE__) |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | #ifndef WARN_ON | 42 | #ifndef WARN_ON |