Skip to contentSkip to conversation

PCI: Drop duplicate pcie_get_speed_cap(), pcie_get_width_cap() declarations

PATCH In review Bjorn Helgaas 3 participants 3 messages Nov 11, 2024 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: Drop duplicate pcie_get_speed_cap(), pcie_get_width_cap() declarations

From: Bjorn Helgaas <[email protected]>

6cf57be0f78e ("PCI: Add pcie_get_speed_cap() to find max supported link speed") and c70b65fb7f12 ("PCI: Add pcie_get_width_cap() to find max supported link width") added declarations to drivers/pci/pci.h.

576c7218a154 ("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.

---
 drivers/pci/pci.h | 2 --
 1 file changed, 2 deletions(-)
drivers/pci/pci.h +0 -2
index 7573f81f58c4..1d5c519e19b1 100644
@@ -395,8 +395,6 @@ static inline int pcie_dev_speed_mbps(enum pci_bus_speed speed)
 
 u8 pcie_get_supported_speeds(struct pci_dev *dev);
 const char *pci_speed_string(enum pci_bus_speed speed);
-enum pci_bus_speed pcie_get_speed_cap(struct pci_dev *dev);
-enum pcie_link_width pcie_get_width_cap(struct pci_dev *dev);
 void __pcie_print_link_status(struct pci_dev *dev, bool verbose);
 void pcie_report_downtraining(struct pci_dev *dev);
 
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw

[Public]

Quoted 15 lines

-----Original Message-----
From: Bjorn Helgaas <[email protected]>
Sent: Monday, November 11, 2024 3:36 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Tal Gilboa <[email protected]>; Bjorn Helgaas <[email protected]>
Subject: [PATCH] PCI: Drop duplicate pcie_get_speed_cap(), pcie_get_width_cap() declarations

From: Bjorn Helgaas <[email protected]>

6cf57be0f78e ("PCI: Add pcie_get_speed_cap() to find max supported link speed") and c70b65fb7f12 ("PCI: Add pcie_get_width_cap() to find max supported link width") added declarations to drivers/pci/pci.h.

Quoted 7 lines

576c7218a154 ("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.

Quoted 19 lines
---
 drivers/pci/pci.h | 2 --
 1 file changed, 2 deletions(-)
drivers/pci/pci.h index 7573f81f58c4..1d5c519e19b1 renamed from drivers/pci/pci.h +0 -0

100644

drivers/pci/pci.h +0 -0
@@ -395,8 +395,6 @@ static inline int pcie_dev_speed_mbps(enum
 pci_bus_speed speed)
 
 u8 pcie_get_supported_speeds(struct pci_dev *dev);  const char
 *pci_speed_string(enum pci_bus_speed speed); -enum pci_bus_speed

pcie_get_speed_cap(struct pci_dev *dev); -enum pcie_link_width pcie_get_width_cap(struct pci_dev *dev); void __pcie_print_link_status(struct pci_dev *dev, bool verbose); void pcie_report_downtraining(struct pci_dev *dev);

--
2.34.1

Acked-by on v1 1/1
#2 lore raw
In reply to Bjorn Helgaas

Hello,

Quoted 9 lines

6cf57be0f78e ("PCI: Add pcie_get_speed_cap() to find max supported link speed") and c70b65fb7f12 ("PCI: Add pcie_get_width_cap() to find max supported link width") added declarations to drivers/pci/pci.h.

576c7218a154 ("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.

Thank you for the clean-up!

Krzysztof