提交 b52b0c4f 编写于 作者: C Christoph Hellwig 提交者: Thomas Gleixner

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: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20191113071836.21041-4-hch@lst.de
上级 948fdcf9
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册