Skip to content

Commit ecfea5d

Browse files
committed
PCI: Unexport pcie_port_bus_type
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>
1 parent e8c81fc commit ecfea5d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/pci/pci-driver.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,6 @@ struct bus_type pcie_port_bus_type = {
17051705
.name = "pci_express",
17061706
.match = pcie_port_bus_match,
17071707
};
1708-
EXPORT_SYMBOL_GPL(pcie_port_bus_type);
17091708
#endif
17101709

17111710
static int __init pci_driver_init(void)

0 commit comments

Comments
 (0)