Re: [PATCH v2] s390/irqflags: Add out-of-line definitions of arch_local_irq_*() for KMSAN
From: Heiko Carstens
Date: Fri Aug 07 2026 - 08:29:32 EST
On Thu, Aug 06, 2026 at 09:04:45PM +0200, Ilya Leoshkevich wrote:
> Inline KMSAN arch_local_irq_*() definitions run afoul of
> -Wstatic-in-inline. Move them out-of-line. Make sure decompressor and
> non-GPL modules see the out-of-line definitions.
>
> Cc: Boqun Feng <boqun@xxxxxxxxxx>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202607131219.euJHPSJ5-lkp@xxxxxxxxx/
> Suggested-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
> Fixes: 1b301f5f28ba ("s390/irqflags: do not instrument arch_local_irq_*() with KMSAN")
> Signed-off-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx>
> ---
>
> v1: https://lore.kernel.org/lkml/20260806101740.15764C97-hca@xxxxxxxxxxxxx/
> v1 -> v2: Fix style issues (Heiko).
>
> arch/s390/include/asm/irqflags.h | 20 +++++++++++++-------
> arch/s390/kernel/Makefile | 1 +
> arch/s390/kernel/irqflags.c | 28 ++++++++++++++++++++++++++++
> 3 files changed, 42 insertions(+), 7 deletions(-)
> create mode 100644 arch/s390/kernel/irqflags.c
Applied, thanks!