Skip to contentSkip to conversation

x86: fix missing declaration of x86_apple_machine

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

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 x86: fix missing declaration of x86_apple_machine

arch/x86/kernel/quirks.c should include include/linux/platform_data/x86/apple.h
for declaration of x86_apple_machine. This fixes the sparse warning:

arch/x86/kernel/quirks.c:662:6: warning: symbol 'x86_apple_machine' was not declared. Should it be static?

---
v2:
- fix some typos

 arch/x86/kernel/quirks.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/kernel/quirks.c +2 -0
index 6d0df6a58873..a92f18db9610 100644
@@ -10,6 +10,8 @@
 #include <asm/setup.h>
 #include <asm/mce.h>
 
+#include <linux/platform_data/x86/apple.h>
+
 #if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_SMP) && defined(CONFIG_PCI)
 
 static void quirk_intel_irqbalance(struct pci_dev *dev)
Signature · 1 line
2.34.1
merge bot Applied
#1 lore raw

[tip: x86/cleanups] x86/platform: Fix missing declaration of 'x86_apple_machine'

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:     e008eeec7868a9ca6e159726aeb9bdbf2ab86647
Gitweb:        https://git.kernel.org/tip/e008eeec7868a9ca6e159726aeb9bdbf2ab86647
Author:        Zhang Kunbo <[email protected]>
AuthorDate:    Tue, 26 Nov 2024 01:54:57 
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Thu, 27 Feb 2025 22:52:37 +01:00

x86/platform: Fix missing declaration of 'x86_apple_machine'

Fix this sparse warning:

arch/x86/kernel/quirks.c:662:6: warning: symbol 'x86_apple_machine' was not declared. Should it be static?

---
 arch/x86/kernel/quirks.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/kernel/quirks.c +2 -0
index 6d0df6a..a92f18d 100644
@@ -10,6 +10,8 @@
 #include <asm/setup.h>
 #include <asm/mce.h>
 
+#include <linux/platform_data/x86/apple.h>
+
 #if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_SMP) && defined(CONFIG_PCI)
 
 static void quirk_intel_irqbalance(struct pci_dev *dev)