x86: fix missing declaration of io_apic_irqs
PATCH v2 1/1 x86: fix missing declaration of io_apic_irqs
arch/x86/kernel/i8259.c should include arch/x86/include/asm/io_apic.h
for declaration of io_apic_irqs. This fixes the sparse warning:
arch/x86/kernel/i8259.c:57:15: warning: symbol 'io_apic_irqs' was not declared. Should it be static?
Signed-off-by Zhang Kunbo <[email protected]>
---
v2:
- fix some typos
arch/x86/kernel/i8259.c | 1 + 1 file changed, 1 insertion(+)
arch/x86/kernel/i8259.c +1 -0
@@ -23,6 +23,7 @@#include <asm/desc.h> #include <asm/apic.h> #include <asm/i8259.h> +#include <asm/io_apic.h> /* * This is the 'legacy' 8259A Programmable Interrupt Controller,
Signature · 1 line
2.34.1
[tip: x86/cleanups] x86/irq: Fix missing declaration of 'io_apic_irqs'
The following commit has been merged into the x86/cleanups branch of tip:
The following commit has been merged into the x86/cleanups branch of tip:
Commit-ID: b8ffd979356e33a3af0854d47375bba611126f3b Gitweb: https://git.kernel.org/tip/b8ffd979356e33a3af0854d47375bba611126f3b Author: Zhang Kunbo <[email protected]> AuthorDate: Tue, 26 Nov 2024 02:05:11 Committer: Ingo Molnar <[email protected]> CommitterDate: Thu, 27 Feb 2025 22:52:37 +01:00
x86/irq: Fix missing declaration of 'io_apic_irqs'
Fix this sparse warning:
arch/x86/kernel/i8259.c:57:15: warning: symbol 'io_apic_irqs' was not declared. Should it be static?
Signed-off-by Zhang Kunbo <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/x86/kernel/i8259.c | 1 + 1 file changed, 1 insertion(+)
arch/x86/kernel/i8259.c +1 -0
@@ -23,6 +23,7 @@#include <asm/desc.h> #include <asm/apic.h> #include <asm/i8259.h> +#include <asm/io_apic.h> /* * This is the 'legacy' 8259A Programmable Interrupt Controller,