mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 09:41:03 +02:00
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@kernel.org>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202607131219.euJHPSJ5-lkp@intel.com/
Suggested-by: Heiko Carstens <hca@linux.ibm.com>
Fixes: 1b301f5f28 ("s390/irqflags: do not instrument arch_local_irq_*() with KMSAN")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
29 lines
590 B
C
29 lines
590 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/export.h>
|
|
#include <asm/irqflags.h>
|
|
|
|
noinstr unsigned long arch_local_save_flags(void)
|
|
{
|
|
return __arch_local_save_flags();
|
|
}
|
|
EXPORT_SYMBOL(arch_local_save_flags);
|
|
|
|
noinstr unsigned long arch_local_irq_save(void)
|
|
{
|
|
return __arch_local_irq_save();
|
|
}
|
|
EXPORT_SYMBOL(arch_local_irq_save);
|
|
|
|
noinstr void arch_local_irq_enable_external(void)
|
|
{
|
|
__arch_local_irq_enable_external();
|
|
}
|
|
EXPORT_SYMBOL(arch_local_irq_enable_external);
|
|
|
|
noinstr void arch_local_irq_enable(void)
|
|
{
|
|
__arch_local_irq_enable();
|
|
}
|
|
EXPORT_SYMBOL(arch_local_irq_enable);
|