diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-11-08 15:58:29 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2023-11-23 13:32:29 +0300 |
commit | 64bac5ea17d527872121adddfee869c7a0618f8f (patch) | |
tree | 01c4bcafcfbc6553f0a92fbef32993e2ec0772d9 /arch/x86/include | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) | |
download | linux-64bac5ea17d527872121adddfee869c7a0618f8f.tar.xz |
arch: consolidate arch_irq_work_raise prototypes
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>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/irq_work.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/include/asm/irq_work.h b/arch/x86/include/asm/irq_work.h index 800ffce0db29..6b4d36c95165 100644 --- a/arch/x86/include/asm/irq_work.h +++ b/arch/x86/include/asm/irq_work.h @@ -9,7 +9,6 @@ static inline bool arch_irq_work_has_interrupt(void) { return boot_cpu_has(X86_FEATURE_APIC); } -extern void arch_irq_work_raise(void); #else static inline bool arch_irq_work_has_interrupt(void) { |