summaryrefslogtreecommitdiff
path: root/arch/s390
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2010-01-13 22:44:38 +0300
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>2010-01-13 22:44:45 +0300
commita9df8e325d0de527c2e97297704ebbec48c01cbf (patch)
tree6bc57b4d9d670cc7cd166c3261b598d2b664a51f /arch/s390
parentfb380aadfe34e8d3ce628cb3e386882351940874 (diff)
downloadlinux-a9df8e325d0de527c2e97297704ebbec48c01cbf.tar.xz
[S390] bug: implement arch specific __WARN macro
This one will trap, generates shorter code and emits better debug data than the generic version. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/include/asm/bug.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/include/asm/bug.h b/arch/s390/include/asm/bug.h
index efb74fd5156e..b1066b9fb5f8 100644
--- a/arch/s390/include/asm/bug.h
+++ b/arch/s390/include/asm/bug.h
@@ -52,6 +52,10 @@
unreachable(); \
} while (0)
+#define __WARN() do { \
+ __EMIT_BUG(BUGFLAG_WARNING); \
+} while (0)
+
#define WARN_ON(x) ({ \
int __ret_warn_on = !!(x); \
if (__builtin_constant_p(__ret_warn_on)) { \