linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] PCI: cadence: Make cdns_pci_map_bus stub helper inline
@ 2020-08-03 12:21 YueHaibing
  0 siblings, 0 replies; only message in thread
From: YueHaibing @ 2020-08-03 12:21 UTC (permalink / raw)
  To: tjoseph, lorenzo.pieralisi, robh, bhelgaas, kishon
  Cc: linux-pci, linux-kernel, YueHaibing

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.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/pci/controller/cadence/pcie-cadence.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/controller/cadence/pcie-cadence.h b/drivers/pci/controller/cadence/pcie-cadence.h
index 655a6b4d4964..00e44256c3e8 100644
--- a/drivers/pci/controller/cadence/pcie-cadence.h
+++ b/drivers/pci/controller/cadence/pcie-cadence.h
@@ -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;
 }
-- 
2.17.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-03 12:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-03 12:21 [PATCH -next] PCI: cadence: Make cdns_pci_map_bus stub helper inline YueHaibing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).