aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/pci.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-11-13 08:18:36 +0100
committerThomas Gleixner <tglx@linutronix.de>2019-11-15 10:37:14 +0100
commitb52b0c4fc977901c243756e191f3fc686725b7d9 (patch)
tree1931717aa152c34eb12cd24995bba3bfbb06695a /arch/x86/include/asm/pci.h
parentx86/pci: Remove pci_64.h (diff)
downloadlinux-dev-b52b0c4fc977901c243756e191f3fc686725b7d9.tar.xz
linux-dev-b52b0c4fc977901c243756e191f3fc686725b7d9.zip
x86/pci: Remove #ifdef __KERNEL__ guard from <asm/pci.h>
pci.h is not a UAPI header, so the __KERNEL__ ifdef is rather pointless. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/20191113071836.21041-4-hch@lst.de
Diffstat (limited to 'arch/x86/include/asm/pci.h')
-rw-r--r--arch/x86/include/asm/pci.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/include/asm/pci.h b/arch/x86/include/asm/pci.h
index d9e28aad2738..90d0731fdcb6 100644
--- a/arch/x86/include/asm/pci.h
+++ b/arch/x86/include/asm/pci.h
@@ -12,8 +12,6 @@
#include <asm/pat.h>
#include <asm/x86_init.h>
-#ifdef __KERNEL__
-
struct pci_sysdata {
int domain; /* PCI domain */
int node; /* NUMA node */
@@ -118,7 +116,6 @@ void native_restore_msi_irqs(struct pci_dev *dev);
#define native_setup_msi_irqs NULL
#define native_teardown_msi_irq NULL
#endif
-#endif /* __KERNEL__ */
/* generic pci stuff */
#include <asm-generic/pci.h>