git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
panic: Allow warnings to set different taint flags
[safe/jmp/linux-2.6]
/
arch
/
s390
/
include
/
asm
/
bug.h
diff --git
a/arch/s390/include/asm/bug.h
b/arch/s390/include/asm/bug.h
index
9beeb9d
..
bf90d1f
100644
(file)
--- a/
arch/s390/include/asm/bug.h
+++ b/
arch/s390/include/asm/bug.h
@@
-46,18
+46,18
@@
unreachable(); \
} while (0)
unreachable(); \
} while (0)
-#define __WARN
() do {
\
- __EMIT_BUG(BUGFLAG_
WARNING);
\
+#define __WARN
_TAINT(taint) do {
\
+ __EMIT_BUG(BUGFLAG_
TAINT(taint));
\
} while (0)
#define WARN_ON(x) ({ \
int __ret_warn_on = !!(x); \
if (__builtin_constant_p(__ret_warn_on)) { \
if (__ret_warn_on) \
} while (0)
#define WARN_ON(x) ({ \
int __ret_warn_on = !!(x); \
if (__builtin_constant_p(__ret_warn_on)) { \
if (__ret_warn_on) \
- __
EMIT_BUG(BUGFLAG_WARNING);
\
+ __
WARN();
\
} else { \
if (unlikely(__ret_warn_on)) \
} else { \
if (unlikely(__ret_warn_on)) \
- __
EMIT_BUG(BUGFLAG_WARNING);
\
+ __
WARN();
\
} \
unlikely(__ret_warn_on); \
})
} \
unlikely(__ret_warn_on); \
})