Skip to contentSkip to conversation

stmmac: dwmac-socfpga: make socfpga_dwmac_pm_ops static

PATCH Applied Joachim Eastwood 2 participants 2 messages May 8, 2016 – May 10, 2016

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stmmac: dwmac-socfpga: make socfpga_dwmac_pm_ops static

Fix the following sparse warning:
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c:274:1: warning:
symbol 'socfpga_dwmac_pm_ops' was not declared. Should it be static?

---
Hi,

Noticed this sparse warning after my last batch of patches. Not so easy to spot these when there is a macro that creates variables.

 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c +2 -1
index cd9764a..f13499f 100644
@@ -271,7 +271,8 @@ static int socfpga_dwmac_resume(struct device *dev)
 }
 #endif /* CONFIG_PM_SLEEP */
 
-SIMPLE_DEV_PM_OPS(socfpga_dwmac_pm_ops, stmmac_suspend, socfpga_dwmac_resume);
+static SIMPLE_DEV_PM_OPS(socfpga_dwmac_pm_ops, stmmac_suspend,
+					       socfpga_dwmac_resume);
 
 static const struct of_device_id socfpga_dwmac_match[] = {
 	{ .compatible = "altr,socfpga-stmmac" },
Signature · 1 line
2.8.2
maintainer Applied
#1 lore raw

From: Joachim Eastwood <[email protected]>
Date: Sun, 8 May 2016 13:47:23 +0200

Quoted 5 lines

Fix the following sparse warning:
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c:274:1: warning:
symbol 'socfpga_dwmac_pm_ops' was not declared. Should it be static?

Applied.