net: phy: Make iproc_mdio_resume static
authorZheng Zengkai <zhengzengkai@huawei.com>
Thu, 7 May 2020 08:03:26 +0000 (16:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 May 2020 19:55:29 +0000 (12:55 -0700)
Fix sparse warnings:

drivers/net/phy/mdio-bcm-iproc.c:182:5: warning:
 symbol 'iproc_mdio_resume' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-bcm-iproc.c

index 38bf40e..77fc970 100644 (file)
@@ -179,7 +179,7 @@ static int iproc_mdio_remove(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_PM_SLEEP
-int iproc_mdio_resume(struct device *dev)
+static int iproc_mdio_resume(struct device *dev)
 {
        struct platform_device *pdev = to_platform_device(dev);
        struct iproc_mdio_priv *priv = platform_get_drvdata(pdev);