x86/PCI: Fix compile errors when CONFIG_PCI is disabled
PATCH 1/1 x86/PCI: Fix compile errors when CONFIG_PCI is disabled
arch/x86/include/asm/pci_x86.h uses a number of data -types and defines without including the headers which define these.
Instead so far it has been relying on files including it including the necessary headers first.
Recently a include <asm/pci_x86.h> was added to arch/x86/kernel/resource.c which does not include the necessary headers first.
Add the missing includes to arch/x86/include/asm/pci_x86.h to fix the compile errors (with certain .config-s) when it is included from arch/x86/kernel/resource.c.
--- arch/x86/include/asm/pci_x86.h | 3 +++ 1 file changed, 3 insertions(+)
arch/x86/include/asm/pci_x86.h +3 -0
@@ -5,7 +5,10 @@* (c) 1999 Martin Mares <[email protected]> */ +#include <linux/errno.h> +#include <linux/init.h> #include <linux/ioport.h> +#include <linux/spinlock.h> #undef DEBUG
Signature · 1 line
2.31.1
Quoted 9 lines · Hans de Goede
arch/x86/include/asm/pci_x86.huses a number of data -types and defines without including the headers which define these.Instead so far it has been relying on files including it including the necessary headers first.
Recently a include <
asm/pci_x86.h> was added toarch/x86/kernel/resource.cwhich does not include the necessary headers first.
Quoted 7 lines
Add the missing includes to
arch/x86/include/asm/pci_x86.hto fix the compile errors (with certain .config-s) when it is included fromarch/x86/kernel/resource.c.Fixes f10507a66e36 ("x86/PCI: Ignore E820 reservations for bridge windows on newer systems")Reported-by kernel test robot <[email protected]>Signed-off-by Hans de Goede <[email protected]>
Borislav Petkov
maintainerQuoted 14 lines · Mika Westerberg
Quoted 13 lines · Hans de Goede
arch/x86/include/asm/pci_x86.huses a number of data -types and defines without including the headers which define these.Instead so far it has been relying on files including it including the necessary headers first.
Recently a include <
asm/pci_x86.h> was added toarch/x86/kernel/resource.cwhich does not include the necessary headers first.Add the missing includes to
arch/x86/include/asm/pci_x86.hto fix the compile errors (with certain .config-s) when it is included fromarch/x86/kernel/resource.c.
Quoted 5 lines
Quoted 3 lines
Fixes f10507a66e36 ("x86/PCI: Ignore E820 reservations for bridge windows on newer systems")Reported-by kernel test robot <[email protected]>Signed-off-by Hans de Goede <[email protected]>Reviewed-by Mika Westerberg <[email protected]>
IIRC, this was squashed into the Fixes: patch:
https://lore.kernel.org/r/20211020211455.GA2641031@bhelgaas
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette