mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 02:36:21 +00:00
64bac5ea17
The prototype was hidden in an #ifdef on x86, which causes a warning: kernel/irq_work.c:72:13: error: no previous prototype for 'arch_irq_work_raise' [-Werror=missing-prototypes] Some architectures have a working prototype, while others don't. Fix this by providing it in only one place that is always visible. Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Acked-by: Palmer Dabbelt <palmer@rivosinc.com> Acked-by: Guo Ren <guoren@kernel.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
20 lines
358 B
C
20 lines
358 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_IRQ_WORK_H
|
|
#define _ASM_IRQ_WORK_H
|
|
|
|
#include <asm/cpufeature.h>
|
|
|
|
#ifdef CONFIG_X86_LOCAL_APIC
|
|
static inline bool arch_irq_work_has_interrupt(void)
|
|
{
|
|
return boot_cpu_has(X86_FEATURE_APIC);
|
|
}
|
|
#else
|
|
static inline bool arch_irq_work_has_interrupt(void)
|
|
{
|
|
return false;
|
|
}
|
|
#endif
|
|
|
|
#endif /* _ASM_IRQ_WORK_H */
|