From: Wei Yongjun Date: Tue, 23 Aug 2016 15:06:05 +0000 (+0000) Subject: net: phy: xgmiitorgmii: Fix non static symbol warning X-Git-Tag: v4.9-rc1~127^2~396 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2698f85e88244e1bce5c019e166e5c33aff2b6e5;p=karo-tx-linux.git net: phy: xgmiitorgmii: Fix non static symbol warning Fixes the following sparse warning: drivers/net/phy/xilinx_gmii2rgmii.c:61:5: warning: symbol 'xgmiitorgmii_probe' was not declared. Should it be static? Signed-off-by: Wei Yongjun Signed-off-by: David S. Miller --- diff --git a/drivers/net/phy/xilinx_gmii2rgmii.c b/drivers/net/phy/xilinx_gmii2rgmii.c index f38be7094362..d15dd3938ba8 100644 --- a/drivers/net/phy/xilinx_gmii2rgmii.c +++ b/drivers/net/phy/xilinx_gmii2rgmii.c @@ -58,7 +58,7 @@ static int xgmiitorgmii_read_status(struct phy_device *phydev) return 0; } -int xgmiitorgmii_probe(struct mdio_device *mdiodev) +static int xgmiitorgmii_probe(struct mdio_device *mdiodev) { struct device *dev = &mdiodev->dev; struct device_node *np = dev->of_node, *phy_node;