diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2010-01-13 14:44:38 -0500 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2010-01-13 14:44:45 -0500 |
commit | a9df8e325d0de527c2e97297704ebbec48c01cbf (patch) | |
tree | 6bc57b4d9d670cc7cd166c3261b598d2b664a51f /arch/s390 | |
parent | fb380aadfe34e8d3ce628cb3e386882351940874 (diff) |
[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.h | 4 |
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 @@ | |||
52 | unreachable(); \ | 52 | unreachable(); \ |
53 | } while (0) | 53 | } while (0) |
54 | 54 | ||
55 | #define __WARN() do { \ | ||
56 | __EMIT_BUG(BUGFLAG_WARNING); \ | ||
57 | } while (0) | ||
58 | |||
55 | #define WARN_ON(x) ({ \ | 59 | #define WARN_ON(x) ({ \ |
56 | int __ret_warn_on = !!(x); \ | 60 | int __ret_warn_on = !!(x); \ |
57 | if (__builtin_constant_p(__ret_warn_on)) { \ | 61 | if (__builtin_constant_p(__ret_warn_on)) { \ |