PCI: Make pci_setup_bridge() static
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 11 Mar 2025 17:47:00 +0000 (19:47 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 20 Mar 2025 21:44:26 +0000 (16:44 -0500)
pci_setup_bridge() is only used within setup-bus.c. Therefore, make it a
static function.

Link: https://lore.kernel.org/r/20250311174701.3586-3-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/setup-bus.c
include/linux/pci.h

index 58f28e4e24b31745b1afbfa726e444fd42e67e4f..c7140051e691eecc71168f02d2d4f8c470d9cb29 100644 (file)
@@ -791,7 +791,7 @@ void __weak pcibios_setup_bridge(struct pci_bus *bus, unsigned long type)
 {
 }
 
-void pci_setup_bridge(struct pci_bus *bus)
+static void pci_setup_bridge(struct pci_bus *bus)
 {
        unsigned long type = IORESOURCE_IO | IORESOURCE_MEM |
                                  IORESOURCE_PREFETCH;
index c629962f4ccd49dc1310c2a386423a222f793c86..9a703355ef06715100dc66a1067fadb0b7aa0e04 100644 (file)
@@ -1634,7 +1634,6 @@ void pci_walk_bus(struct pci_bus *top, int (*cb)(struct pci_dev *, void *),
                  void *userdata);
 int pci_cfg_space_size(struct pci_dev *dev);
 unsigned char pci_bus_max_busnr(struct pci_bus *bus);
-void pci_setup_bridge(struct pci_bus *bus);
 resource_size_t pcibios_window_alignment(struct pci_bus *bus,
                                         unsigned long type);