From: Randy Dunlap Date: Sat, 26 Feb 2022 21:37:03 +0000 (-0800) Subject: x86/PCI: Add #includes to asm/pci_x86.h X-Git-Tag: howlett/maple/20220722_2~916^2~15^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b9fae6a47b8bcb397e6a482095431f6ba9648211;p=users%2Fjedix%2Flinux-maple.git x86/PCI: Add #includes to asm/pci_x86.h uses raw_spinlock_t, __init, and EINVAL; #include the appropriate files to prevent build errors. ../arch/x86/include/asm/pci_x86.h:105:8: error: unknown type name ‘raw_spinlock_t’ ../arch/x86/include/asm/pci_x86.h:141:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dmi_check_pciprobe’ ../arch/x86/include/asm/pci_x86.h:150:10: error: ‘EINVAL’ undeclared (first use in this function) Link: https://lore.kernel.org/r/20220226213703.24041-1-rdunlap@infradead.org Signed-off-by: Randy Dunlap Signed-off-by: Bjorn Helgaas Cc: Mark Brown Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen --- diff --git a/arch/x86/include/asm/pci_x86.h b/arch/x86/include/asm/pci_x86.h index 490411dba438d..042972394c324 100644 --- a/arch/x86/include/asm/pci_x86.h +++ b/arch/x86/include/asm/pci_x86.h @@ -5,7 +5,10 @@ * (c) 1999 Martin Mares */ +#include +#include #include +#include #undef DEBUG