From: Heiko Carstens Date: Wed, 13 Jan 2010 19:44:38 +0000 (+0100) Subject: [S390] bug: implement arch specific __WARN macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a9df8e325d0de527c2e97297704ebbec48c01cbf;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [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 Signed-off-by: Martin Schwidefsky --- 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 @@ 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)) { \