diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2024-05-07 14:17:58 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-05-09 02:03:55 +0200 |
commit | fe4a83ec07818f2243eac584488e65397699550c (patch) | |
tree | 5dcca8f64b38de2a422df32adda1f9083d9cb41d /drivers/pci/pci.c | |
parent | x86/pci: Remove OLPC dead code (diff) | |
download | linux-fe4a83ec07818f2243eac584488e65397699550c.tar.xz linux-fe4a83ec07818f2243eac584488e65397699550c.zip |
PCI: Make pcie_bandwidth_capable() static
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>
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 9ee0d4e8808e..ca16deefedcb 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -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); |