PCI: Unexport pci_bus_get() and pci_bus_put()
authorKelsey Skunberg <skunberg.kelsey@gmail.com>
Wed, 17 Jul 2019 18:23:53 +0000 (12:23 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Jul 2019 23:32:49 +0000 (18:32 -0500)
pci_bus_get() and pci_bus_put() are not used by a loadable kernel module
and do not need to be exported.

These were exported by fe830ef62ac6 ("PCI: Introduce pci_bus_{get|put}() to
manage PCI bus reference count"), but there are no loadable modules in the
tree that use them.

Link: https://lore.kernel.org/r/20190717182353.45557-1-skunberg.kelsey@gmail.com
Signed-off-by: Kelsey Skunberg <skunberg.kelsey@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/bus.c

index 495059d923f7da4e360a7689349c46260e16e797..8e40b3e6da77d14ebeaa5ce1d0e40bcc9d525413 100644 (file)
@@ -417,11 +417,9 @@ struct pci_bus *pci_bus_get(struct pci_bus *bus)
                get_device(&bus->dev);
        return bus;
 }
-EXPORT_SYMBOL(pci_bus_get);
 
 void pci_bus_put(struct pci_bus *bus)
 {
        if (bus)
                put_device(&bus->dev);
 }
-EXPORT_SYMBOL(pci_bus_put);