Skip to content

Commit fe4a83e

Browse files
ij-intelbjorn-helgaas
authored andcommitted
PCI: Make pcie_bandwidth_capable() static
pcie_bandwidth_capable() is only used within pci.c, make it static. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 9d11a09 commit fe4a83e

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
@@ -6065,8 +6065,9 @@ EXPORT_SYMBOL(pcie_get_width_cap);
60656065
* and width, multiplying them, and applying encoding overhead. The result
60666066
* is in Mb/s, i.e., megabits/second of raw bandwidth.
60676067
*/
6068-
u32 pcie_bandwidth_capable(struct pci_dev *dev, enum pci_bus_speed *speed,
6069-
enum pcie_link_width *width)
6068+
static u32 pcie_bandwidth_capable(struct pci_dev *dev,
6069+
enum pci_bus_speed *speed,
6070+
enum pcie_link_width *width)
60706071
{
60716072
*speed = pcie_get_speed_cap(dev);
60726073
*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)