[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211020102102.86577-1-hdegoede@redhat.com>
Date: Wed, 20 Oct 2021 12:21:02 +0200
From: Hans de Goede <hdegoede@...hat.com>
To: "Rafael J . Wysocki" <rjw@...ysocki.net>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
Krzysztof WilczyĆski <kw@...ux.com>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Myron Stowe <myron.stowe@...hat.com>,
Juha-Pekka Heikkila <juhapekka.heikkila@...il.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
"H . Peter Anvin" <hpa@...or.com>
Cc: Hans de Goede <hdegoede@...hat.com>, linux-acpi@...r.kernel.org,
linux-pci@...r.kernel.org, x86@...nel.org,
linux-kernel@...r.kernel.org, kernel test robot <lkp@...el.com>
Subject: [PATCH] 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.
Fixes: f10507a66e36 ("x86/PCI: Ignore E820 reservations for bridge windows on newer systems")
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: Hans de Goede <hdegoede@...hat.com>
---
arch/x86/include/asm/pci_x86.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/x86/include/asm/pci_x86.h b/arch/x86/include/asm/pci_x86.h
index 0bb4e7dd0ffc..c5413d8007ed 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 <mj@....cz>
*/
+#include <linux/errno.h>
+#include <linux/init.h>
#include <linux/ioport.h>
+#include <linux/spinlock.h>
#undef DEBUG
--
2.31.1
Powered by blists - more mailing lists