]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PCI: Include pci.h for struct pci_ops definition
authorMarc Gonzalez <marc_gonzalez@sigmadesigns.com>
Fri, 17 Mar 2017 14:53:19 +0000 (15:53 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 23 Mar 2017 13:44:14 +0000 (08:44 -0500)
struct pci_ecam_ops embeds a struct pci_ops.  Explicitly request the
definition for struct pci_ops, otherwise gcc might complain:

  include/linux/pci-ecam.h:29:19: error: field 'pci_ops' has incomplete type

Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
include/linux/pci-ecam.h

index f0d2b94512701ccdb6c77d5b37c7ff4f49ea1d3e..b8f11d783a1179607202798f843e486c02a0ec35 100644 (file)
@@ -16,6 +16,7 @@
 #ifndef DRIVERS_PCI_ECAM_H
 #define DRIVERS_PCI_ECAM_H
 
+#include <linux/pci.h>
 #include <linux/kernel.h>
 #include <linux/platform_device.h>