Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Heiko Carstens and committed by
Martin Schwidefsky
a9df8e32 fb380aad

+4
+4
arch/s390/include/asm/bug.h
··· 52 52 unreachable(); \ 53 53 } while (0) 54 54 55 + #define __WARN() do { \ 56 + __EMIT_BUG(BUGFLAG_WARNING); \ 57 + } while (0) 58 + 55 59 #define WARN_ON(x) ({ \ 56 60 int __ret_warn_on = !!(x); \ 57 61 if (__builtin_constant_p(__ret_warn_on)) { \