Skip to content

Commit 5da78d9

Browse files
Kelsey Skunbergbjorn-helgaas
authored andcommitted
PCI: Make pcie_update_link_speed() private
This interface: void pcie_update_link_speed(struct pci_bus *bus, u16 link_status); is only used in drivers/pci/ and does not need to be seen by the rest of the kernel. Move it to drivers/pci/pci.h so it's private to the PCI subsystem. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kelsey Skunberg <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent ecd29c1 commit 5da78d9

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

drivers/pci/pci.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ u32 pcie_bandwidth_capable(struct pci_dev *dev, enum pci_bus_speed *speed,
299299
enum pcie_link_width *width);
300300
void __pcie_print_link_status(struct pci_dev *dev, bool verbose);
301301
void pcie_report_downtraining(struct pci_dev *dev);
302+
void pcie_update_link_speed(struct pci_bus *bus, u16 link_status);
302303

303304
/* Single Root I/O Virtualization */
304305
struct pci_sriov {

include/linux/pci.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,6 @@ struct pci_bus *pci_scan_root_bus(struct device *parent, int bus,
987987
int pci_scan_root_bus_bridge(struct pci_host_bridge *bridge);
988988
struct pci_bus *pci_add_new_bus(struct pci_bus *parent, struct pci_dev *dev,
989989
int busnr);
990-
void pcie_update_link_speed(struct pci_bus *bus, u16 link_status);
991990
struct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr,
992991
const char *name,
993992
struct hotplug_slot *hotplug);

0 commit comments

Comments
 (0)