]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bugs/core: Extend __WARN_FLAGS() with the 'cond_str' parameter
authorIngo Molnar <mingo@kernel.org>
Thu, 15 May 2025 12:46:30 +0000 (14:46 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 13 Jun 2025 08:20:52 +0000 (10:20 +0200)
commitaec58b48517c911fbdf2beebba46a347e5910072
tree3048c7bb06fc8ff2f33516b57a4bc1a4e83870fa
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
bugs/core: Extend __WARN_FLAGS() with the 'cond_str' parameter

Push the new parameter down into every architecture that defines __WARN_FLAGS():

  arm64
  loongarch
  parisc
  powerpc
  riscv
  s390
  sh
  x86

Don't pass anything substantial down yet, just propagate the
new parameter with empty strings, without generating it or
using it.

( The string is never NULL, so it can be concatenated at the
  preprocessor level. )

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-arch@vger.kernel.org
Link: https://lore.kernel.org/r/20250515124644.2958810-2-mingo@kernel.org
arch/arm64/include/asm/bug.h
arch/loongarch/include/asm/bug.h
arch/parisc/include/asm/bug.h
arch/powerpc/include/asm/bug.h
arch/riscv/include/asm/bug.h
arch/s390/include/asm/bug.h
arch/sh/include/asm/bug.h
arch/x86/include/asm/bug.h
include/asm-generic/bug.h