Skip to contentSkip to conversation

PCI: cadence: Make cdns_pci_map_bus stub helper inline

PATCH New YueHaibing 1 participant 1 message Aug 3, 2020

Subsystems (3)
lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 PCI: cadence: Make cdns_pci_map_bus stub helper inline

If CONFIG_PCIE_CADENCE_HOST is n, gcc warns:

drivers/pci/controller/cadence/pcie-cadence.h:486:22:
warning: 'cdns_pci_map_bus' defined but not used [-Wunused-function]

Make stub helper inline to fix this.

---
 drivers/pci/controller/cadence/pcie-cadence.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pci/controller/cadence/pcie-cadence.h +2 -2
index 655a6b4d4964..00e44256c3e8 100644
@@ -483,8 +483,8 @@ static inline int cdns_pcie_host_setup(struct cdns_pcie_rc *rc)
 	return 0;
 }
 
-static void __iomem *cdns_pci_map_bus(struct pci_bus *bus, unsigned int devfn,
-				      int where)
+static inline void __iomem *cdns_pci_map_bus(struct pci_bus *bus, unsigned int devfn,
+					     int where)
 {
 	return NULL;
 }
Signature · 1 line
2.17.1