aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/bug.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/bug.h')
-rw-r--r--include/asm-generic/bug.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h
index 2520a6e241dc..506ec19a3736 100644
--- a/include/asm-generic/bug.h
+++ b/include/asm-generic/bug.h
@@ -31,6 +31,9 @@ struct bug_entry {
31 31
32#endif /* CONFIG_GENERIC_BUG */ 32#endif /* CONFIG_GENERIC_BUG */
33 33
34#ifndef __ASSEMBLY__
35#include <linux/kernel.h>
36
34/* 37/*
35 * Don't use BUG() or BUG_ON() unless there's really no way out; one 38 * Don't use BUG() or BUG_ON() unless there's really no way out; one
36 * example might be detecting data structure corruption in the middle 39 * example might be detecting data structure corruption in the middle
@@ -60,7 +63,6 @@ struct bug_entry {
60 * to provide better diagnostics. 63 * to provide better diagnostics.
61 */ 64 */
62#ifndef __WARN_TAINT 65#ifndef __WARN_TAINT
63#ifndef __ASSEMBLY__
64extern __printf(3, 4) 66extern __printf(3, 4)
65void warn_slowpath_fmt(const char *file, const int line, 67void warn_slowpath_fmt(const char *file, const int line,
66 const char *fmt, ...); 68 const char *fmt, ...);
@@ -69,7 +71,6 @@ void warn_slowpath_fmt_taint(const char *file, const int line, unsigned taint,
69 const char *fmt, ...); 71 const char *fmt, ...);
70extern void warn_slowpath_null(const char *file, const int line); 72extern void warn_slowpath_null(const char *file, const int line);
71#define WANT_WARN_ON_SLOWPATH 73#define WANT_WARN_ON_SLOWPATH
72#endif
73#define __WARN() warn_slowpath_null(__FILE__, __LINE__) 74#define __WARN() warn_slowpath_null(__FILE__, __LINE__)
74#define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg) 75#define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg)
75#define __WARN_printf_taint(taint, arg...) \ 76#define __WARN_printf_taint(taint, arg...) \
@@ -202,4 +203,6 @@ extern void warn_slowpath_null(const char *file, const int line);
202# define WARN_ON_SMP(x) ({0;}) 203# define WARN_ON_SMP(x) ({0;})
203#endif 204#endif
204 205
206#endif /* __ASSEMBLY__ */
207
205#endif 208#endif