PCI: Make pcie_bandwidth_capable() static
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 7 May 2024 12:17:58 +0000 (15:17 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 9 May 2024 00:03:55 +0000 (19:03 -0500)
pcie_bandwidth_capable() is only used within pci.c, make it static.

Link: https://lore.kernel.org/r/20240507121758.13849-1-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/pci.c
drivers/pci/pci.h

index 9ee0d4e8808eb2fde7db5ca463edc11bc4be1d4b..ca16deefedcb9755ffb87423ab3b39ef7523f859 100644 (file)
@@ -6065,8 +6065,9 @@ EXPORT_SYMBOL(pcie_get_width_cap);
  * and width, multiplying them, and applying encoding overhead.  The result
  * is in Mb/s, i.e., megabits/second of raw bandwidth.
  */
-u32 pcie_bandwidth_capable(struct pci_dev *dev, enum pci_bus_speed *speed,
-                          enum pcie_link_width *width)
+static u32 pcie_bandwidth_capable(struct pci_dev *dev,
+                                 enum pci_bus_speed *speed,
+                                 enum pcie_link_width *width)
 {
        *speed = pcie_get_speed_cap(dev);
        *width = pcie_get_width_cap(dev);
index 17fed18468474b8ed75694216c742ef55c9079e1..fd44565c47562868bacdad9b1bb2e017cae09795 100644 (file)
@@ -293,8 +293,6 @@ void pci_bus_put(struct pci_bus *bus);
 const char *pci_speed_string(enum pci_bus_speed speed);
 enum pci_bus_speed pcie_get_speed_cap(struct pci_dev *dev);
 enum pcie_link_width pcie_get_width_cap(struct pci_dev *dev);
-u32 pcie_bandwidth_capable(struct pci_dev *dev, enum pci_bus_speed *speed,
-                          enum pcie_link_width *width);
 void __pcie_print_link_status(struct pci_dev *dev, bool verbose);
 void pcie_report_downtraining(struct pci_dev *dev);
 void pcie_update_link_speed(struct pci_bus *bus, u16 link_status);