[tip: x86/cleanups] x86/irq: Fix missing declaration of 'io_apic_irqs'

tip-bot2 for Zhang Kunbo posted 1 patch 9 months, 3 weeks ago
arch/x86/kernel/i8259.c | 1 +
1 file changed, 1 insertion(+)
[tip: x86/cleanups] x86/irq: Fix missing declaration of 'io_apic_irqs'
Posted by tip-bot2 for Zhang Kunbo 9 months, 3 weeks ago
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 <zhangkunbo@huawei.com>
AuthorDate:    Tue, 26 Nov 2024 02:05:11 
Committer:     Ingo Molnar <mingo@kernel.org>
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 <zhangkunbo@huawei.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20241126020511.3464664-1-zhangkunbo@huawei.com
---
 arch/x86/kernel/i8259.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/kernel/i8259.c b/arch/x86/kernel/i8259.c
index c20d183..2bade73 100644
--- a/arch/x86/kernel/i8259.c
+++ b/arch/x86/kernel/i8259.c
@@ -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,