projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb380aa
)
[S390] bug: implement arch specific __WARN macro
author
Heiko Carstens
<
[email protected]
>
Wed, 13 Jan 2010 19:44:38 +0000
(20:44 +0100)
committer
Martin 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
patch
|
blob
|
history
diff --git
a/arch/s390/include/asm/bug.h
b/arch/s390/include/asm/bug.h
index efb74fd5156e8f14590e012260dc6f568b627d3f..b1066b9fb5f89f84cb80fbfa38218ccca2c0ea0a 100644
(file)
--- 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)) { \