Message ID | 20241125124419.3307839-1-zhangkunbo@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | x86: fix missing declartion of x86_apple_machine | expand |
diff --git a/arch/x86/kernel/quirks.c b/arch/x86/kernel/quirks.c index 6d0df6a58873..a92f18db9610 100644 --- a/arch/x86/kernel/quirks.c +++ b/arch/x86/kernel/quirks.c @@ -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)
arch/x86/kernel/quirks.c should include include/linux/platform_data/x86/apple.h for declaration of x86_apple_machine. This fix the sparse warning: arch/x86/kernel/quirks.c:662:6: warning: symbol 'x86_apple_machine' was not declared. Should it be static? Signed-off-by: Zhang Kunbo <zhangkunbo@huawei.com> --- arch/x86/kernel/quirks.c | 2 ++ 1 file changed, 2 insertions(+)