Skip to content

Commit 815e68c

Browse files
author
Myron Stowe
committed
PCI: Make pcie_bandwidth_capable() static
JIRA: https://issues.redhat.com/browse/RHEL-50255 Upstream Status: fe4a83e commit fe4a83e Author: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Date: Tue May 7 15:17:58 2024 +0300 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> Signed-off-by: Myron Stowe <mstowe@redhat.com>
1 parent 1e65ffd commit 815e68c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

drivers/pci/pci.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6048,8 +6048,9 @@ EXPORT_SYMBOL(pcie_get_width_cap);
60486048
* and width, multiplying them, and applying encoding overhead. The result
60496049
* is in Mb/s, i.e., megabits/second of raw bandwidth.
60506050
*/
6051-
u32 pcie_bandwidth_capable(struct pci_dev *dev, enum pci_bus_speed *speed,
6052-
enum pcie_link_width *width)
6051+
static u32 pcie_bandwidth_capable(struct pci_dev *dev,
6052+
enum pci_bus_speed *speed,
6053+
enum pcie_link_width *width)
60536054
{
60546055
*speed = pcie_get_speed_cap(dev);
60556056
*width = pcie_get_width_cap(dev);

drivers/pci/pci.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,6 @@ void pci_bus_put(struct pci_bus *bus);
293293
const char *pci_speed_string(enum pci_bus_speed speed);
294294
enum pci_bus_speed pcie_get_speed_cap(struct pci_dev *dev);
295295
enum pcie_link_width pcie_get_width_cap(struct pci_dev *dev);
296-
u32 pcie_bandwidth_capable(struct pci_dev *dev, enum pci_bus_speed *speed,
297-
enum pcie_link_width *width);
298296
void __pcie_print_link_status(struct pci_dev *dev, bool verbose);
299297
void pcie_report_downtraining(struct pci_dev *dev);
300298
void pcie_update_link_speed(struct pci_bus *bus, u16 link_status);

0 commit comments

Comments
 (0)