diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-31 07:35:57 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-31 07:35:57 -0500 |
commit | 2ca1a615835d9f4990f42102ab1f2ef434e7e89c (patch) | |
tree | 726cf3d5f29a6c66c44e4bd68e7ebed2fd83d059 /include/asm-generic | |
parent | e12f0102ac81d660c9f801d0a0e10ccf4537a9de (diff) | |
parent | 6a94cb73064c952255336cc57731904174b2c58f (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
arch/x86/kernel/io_apic.c
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 |