[PATCH v2] x86: fix missing declaration of io_apic_irqs

From: Zhang Kunbo
Date: Mon Nov 25 2024 - 21:14:10 EST


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 <zhangkunbo@xxxxxxxxxx>
---
v2:
- fix some typos
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 c20d1832c481..2bade73f49e3 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,
--
2.34.1