Skip to contentSkip to conversation

PCI: Add missing include to drivers/pci.h

PATCH Applied Alexandru Gagniuc 2 participants 2 messages Nov 28, 2018 – Dec 6, 2018 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: Add missing include to drivers/pci.h

This files makes use of definitions provided in <linux/pci.h>. This only compiles when <linux/pci.h> is included beforehand, and creates a nasty include dependency. Instead, just include the correct file.

---
 drivers/pci/pci.h | 2 ++
 1 file changed, 2 insertions(+)
drivers/pci/pci.h +2 -0
index 662b7457db23..224d88634115 100644
@@ -2,6 +2,8 @@
 #ifndef DRIVERS_PCI_H
 #define DRIVERS_PCI_H
 
+#include <linux/pci.h>
+
 #define PCI_FIND_CAP_TTL	48
 
 #define PCI_VSEC_ID_INTEL_TBT	0x1234	/* Thunderbolt */
Signature · 1 line
2.17.1
#1 lore raw
Quoted 5 lines · Alexandru Gagniuc

This files makes use of definitions provided in <linux/pci.h>. This only compiles when <linux/pci.h> is included beforehand, and creates a nasty include dependency. Instead, just include the correct file.

Applied to pci/misc for v4.21, thanks!

Quoted 20 lines
---
 drivers/pci/pci.h | 2 ++
 1 file changed, 2 insertions(+)
drivers/pci/pci.h +2 -0
index 662b7457db23..224d88634115 100644
@@ -2,6 +2,8 @@
 #ifndef DRIVERS_PCI_H
 #define DRIVERS_PCI_H
 
+#include <linux/pci.h>
+
 #define PCI_FIND_CAP_TTL	48
 
 #define PCI_VSEC_ID_INTEL_TBT	0x1234	/* Thunderbolt */
Signature · 1 line
2.17.1