Skip to content
Snippets Groups Projects
Commit a9df8e32 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky
Browse files

[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: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent fb380aad
No related branches found
No related tags found
No related merge requests found
...@@ -52,6 +52,10 @@ ...@@ -52,6 +52,10 @@
unreachable(); \ unreachable(); \
} while (0) } while (0)
#define __WARN() do { \
__EMIT_BUG(BUGFLAG_WARNING); \
} while (0)
#define WARN_ON(x) ({ \ #define WARN_ON(x) ({ \
int __ret_warn_on = !!(x); \ int __ret_warn_on = !!(x); \
if (__builtin_constant_p(__ret_warn_on)) { \ if (__builtin_constant_p(__ret_warn_on)) { \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment