PCI: dwc: do not export a static symbol
PATCH 1/1 PCI: dwc: do not export a static symbol
From: Tom Rix <[email protected]>
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 <[email protected]>
--- drivers/pci/controller/dwc/pcie-designware.c | 1 - 1 file changed, 1 deletion(-)
drivers/pci/controller/dwc/pcie-designware.c +0 -1
@@ -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) {
Signature · 1 line
2.18.1