Skip to content

Commit b527685

Browse files
author
Myron Stowe
committed
PCI: Drop duplicate pcie_get_speed_cap(), pcie_get_width_cap() declarations
JIRA: https://issues.redhat.com/browse/RHEL-81906 Upstream Status: ba58eee commit ba58eee Author: Bjorn Helgaas <bhelgaas@google.com> Date: Mon Nov 11 14:21:33 2024 -0600 PCI: Drop duplicate pcie_get_speed_cap(), pcie_get_width_cap() declarations 6cf57be ("PCI: Add pcie_get_speed_cap() to find max supported link speed") and c70b65f ("PCI: Add pcie_get_width_cap() to find max supported link width") added declarations to drivers/pci/pci.h. 576c721 ("PCI: Export pcie_get_speed_cap and pcie_get_width_cap") subsequently added duplicates to include/linux/pci.h. Remove the originals from drivers/pci/pci.h. Both interfaces are used by amdgpu, so they must be in include/linux/pci.h. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Krzysztof Wilczyński <kw@linux.com> Signed-off-by: Myron Stowe <mstowe@redhat.com>
1 parent b1a2c1a commit b527685

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/pci/pci.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,6 @@ static inline int pcie_dev_speed_mbps(enum pci_bus_speed speed)
382382

383383
u8 pcie_get_supported_speeds(struct pci_dev *dev);
384384
const char *pci_speed_string(enum pci_bus_speed speed);
385-
enum pci_bus_speed pcie_get_speed_cap(struct pci_dev *dev);
386-
enum pcie_link_width pcie_get_width_cap(struct pci_dev *dev);
387385
void __pcie_print_link_status(struct pci_dev *dev, bool verbose);
388386
void pcie_report_downtraining(struct pci_dev *dev);
389387

0 commit comments

Comments
 (0)