[S390] bug: implement arch specific __WARN macro
authorHeiko Carstens <[email protected]>
Wed, 13 Jan 2010 19:44:38 +0000 (20:44 +0100)
committerMartin Schwidefsky <[email protected]>
Wed, 13 Jan 2010 19:44:45 +0000 (20:44 +0100)
This one will trap, generates shorter code and emits better debug data
than the generic version.

Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
arch/s390/include/asm/bug.h

index efb74fd5156e8f14590e012260dc6f568b627d3f..b1066b9fb5f89f84cb80fbfa38218ccca2c0ea0a 100644 (file)
        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)) {      \