PCI: Make pci_get_host_bridge_device(), pci_put_host_bridge_device() private
authorKelsey Skunberg <skunberg.kelsey@gmail.com>
Wed, 24 Jul 2019 23:38:40 +0000 (17:38 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 30 Jul 2019 13:45:49 +0000 (08:45 -0500)
These interfaces:

  struct device *pci_get_host_bridge_device(struct pci_dev *dev);
  void pci_put_host_bridge_device(struct device *dev);

are only used in drivers/pci/ and do not need to be seen by the rest of the
kernel.  Move them to drivers/pci/pci.h so they're private to the PCI
subsystem.

Link: https://lore.kernel.org/r/20190724233848.73327-4-skunberg.kelsey@gmail.com
Signed-off-by: Kelsey Skunberg <skunberg.kelsey@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.h
include/linux/pci.h

index ad1fe54ab8ee785258ec9d9979d81bcf28a866d1..b06c750e08d74c3701402df2e034719be1849553 100644 (file)
@@ -243,6 +243,9 @@ enum pci_bar_type {
        pci_bar_mem64,          /* A 64-bit memory BAR */
 };
 
+struct device *pci_get_host_bridge_device(struct pci_dev *dev);
+void pci_put_host_bridge_device(struct device *dev);
+
 int pci_configure_extended_tags(struct pci_dev *dev, void *ign);
 bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *pl,
                                int crs_timeout);
index b13fb829171eaa0bd87f03c6da1123d167ba1b76..ffb904e7895d430b36d8e2cf2a7f9655d60be50c 100644 (file)
@@ -644,9 +644,6 @@ static inline struct pci_dev *pci_upstream_bridge(struct pci_dev *dev)
        return dev->bus->self;
 }
 
-struct device *pci_get_host_bridge_device(struct pci_dev *dev);
-void pci_put_host_bridge_device(struct device *dev);
-
 #ifdef CONFIG_PCI_MSI
 static inline bool pci_dev_msi_enabled(struct pci_dev *pci_dev)
 {