PCI: Unexport pcie_port_bus_type
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 9 Jun 2020 20:27:35 +0000 (15:27 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 25 Aug 2023 13:14:58 +0000 (08:14 -0500)
pcie_port_bus_type is used only in pci-driver.c and pcie/portdrv_core.c and
pcie/portdrv_pci.c.  None of these can be built as modules, so
pcie_port_bus_type doesn't need to be exported.  Unexport it.

Link: https://lore.kernel.org/r/20230824193712.542167-3-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/pci/pci-driver.c

index ae9baf801681d0bda21f721c569c93a162848d1a..1f9845377effc3c15a31228ce51e3fbf5862f6be 100644 (file)
@@ -1705,7 +1705,6 @@ struct bus_type pcie_port_bus_type = {
        .name           = "pci_express",
        .match          = pcie_port_bus_match,
 };
-EXPORT_SYMBOL_GPL(pcie_port_bus_type);
 #endif
 
 static int __init pci_driver_init(void)