Skip to contentSkip to conversation

x86: fix missing declaration of io_apic_irqs

PATCH Applied Zhang Kunbo 2 participants 2 messages Nov 26, 2024 – Feb 27, 2025 x86

lore
Share & tools
lore
#0 lore raw

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?

---
v2:
- fix some typos

 arch/x86/kernel/i8259.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/kernel/i8259.c +1 -0
index c20d1832c481..2bade73f49e3 100644
@@ -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
merge bot Applied
#1 lore raw

[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?

---
 arch/x86/kernel/i8259.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/kernel/i8259.c +1 -0
index c20d183..2bade73 100644
@@ -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,