summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-11-02 12:14:48 +0100
committerDavid S. Miller <davem@davemloft.net>2017-11-04 14:31:00 +0100
commit1ec6e53029e7fddd73bb92500a2dca05fc393e8d (patch)
tree5f7e76bb83b99428fbaf8d3b43d6f952b69d1bfb /drivers/net/phy
parentMerge tag 'wireless-drivers-next-for-davem-2017-11-03' of git://git.kernel.or... (diff)
downloadlinux-1ec6e53029e7fddd73bb92500a2dca05fc393e8d.tar.xz
linux-1ec6e53029e7fddd73bb92500a2dca05fc393e8d.zip
phylink: make local function phylink_phy_change() static
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>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r--drivers/net/phy/phylink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index 05c8f1c10e36..e3bbc70372d3 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -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;