* [PATCH] PCI: dwc: do not export a static symbol
@ 2020-09-12 16:12 trix
0 siblings, 0 replies; only message in thread
From: trix @ 2020-09-12 16:12 UTC (permalink / raw)
To: jingoohan1, gustavo.pimentel, lorenzo.pieralisi, robh, bhelgaas
Cc: linux-pci, linux-kernel, Tom Rix
From: Tom Rix <trix@redhat.com>
Building produces this warning
WARNING: modpost: "dw_pcie_link_set_max_speed"
[vmlinux] is a static EXPORT_SYMBOL_GPL
dw_pcie_link_set_max_speed() has a static storage-class
specifier so it should not be exported.
Fixes: 3af45d34d30c ("PCI: dwc: Centralize link gen setting")
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/pci/controller/dwc/pcie-designware.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/pci/controller/dwc/pcie-designware.c b/drivers/pci/controller/dwc/pcie-designware.c
index 4d105efb5722..3c3a4d1dbc0b 100644
--- a/drivers/pci/controller/dwc/pcie-designware.c
+++ b/drivers/pci/controller/dwc/pcie-designware.c
@@ -508,7 +508,6 @@ static void dw_pcie_link_set_max_speed(struct dw_pcie *pci, u32 link_gen)
dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCAP, cap | link_speed);
}
-EXPORT_SYMBOL_GPL(dw_pcie_link_set_max_speed);
static u8 dw_pcie_iatu_unroll_enabled(struct dw_pcie *pci)
{
--
2.18.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-12 16:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-12 16:12 [PATCH] PCI: dwc: do not export a static symbol trix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®