]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
bugs/s390: Pass in 'cond_str' to __EMIT_BUG()
authorIngo Molnar <mingo@kernel.org>
Thu, 27 Mar 2025 08:00:13 +0000 (09:00 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 28 Jul 2025 06:01:56 +0000 (08:01 +0200)
Pass in the condition string from __WARN_FLAGS(), but do not
concatenate it with __FILE__, because it results in s390
assembler build errors that are beyond my s390-asm-fu.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: linux-s390@vger.kernel.org
Cc: <linux-arch@vger.kernel.org>
Link: https://lore.kernel.org/r/20250515124644.2958810-11-mingo@kernel.org
arch/s390/include/asm/bug.h

index ef3e495ec1e3c35f842c6d329f7635306e9b325c..30f8785a01f5105bd3720634bd1d779a03bae315 100644 (file)
@@ -8,7 +8,7 @@
 
 #ifdef CONFIG_DEBUG_BUGVERBOSE
 
-#define __EMIT_BUG(x) do {                                     \
+#define __EMIT_BUG(cond_str, x) do {                           \
        asm_inline volatile(                                    \
                "0:     mc      0,0\n"                          \
                ".section .rodata.str,\"aMS\",@progbits,1\n"    \
@@ -27,7 +27,7 @@
 
 #else /* CONFIG_DEBUG_BUGVERBOSE */
 
-#define __EMIT_BUG(x) do {                                     \
+#define __EMIT_BUG(cond_str, x) do {                           \
        asm_inline volatile(                                    \
                "0:     mc      0,0\n"                          \
                ".section __bug_table,\"aw\"\n"                 \
 #endif /* CONFIG_DEBUG_BUGVERBOSE */
 
 #define BUG() do {                                     \
-       __EMIT_BUG(0);                                  \
+       __EMIT_BUG("", 0);                              \
        unreachable();                                  \
 } while (0)
 
 #define __WARN_FLAGS(cond_str, flags) do {             \
-       __EMIT_BUG(BUGFLAG_WARNING|(flags));            \
+       __EMIT_BUG(cond_str, BUGFLAG_WARNING|(flags));  \
 } while (0)
 
 #define WARN_ON(x) ({                                  \