]> git.baikalelectronics.ru Git - kernel.git/commitdiff
phylink: make local function phylink_phy_change() static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 2 Nov 2017 11:14:48 +0000 (11:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Nov 2017 13:31:00 +0000 (22:31 +0900)
Fixes the following sparse warnings:

drivers/net/phy/phylink.c:570:6: warning:
 symbol 'phylink_phy_change' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c

index 05c8f1c10e36eae3c442a4908d906c5493570ef7..e3bbc70372d3ba73517514c1eda6a861d35d9524 100644 (file)
@@ -567,7 +567,8 @@ void phylink_destroy(struct phylink *pl)
 }
 EXPORT_SYMBOL_GPL(phylink_destroy);
 
-void phylink_phy_change(struct phy_device *phydev, bool up, bool do_carrier)
+static void phylink_phy_change(struct phy_device *phydev, bool up,
+                              bool do_carrier)
 {
        struct phylink *pl = phydev->phylink;