diff options
author | Baoyou Xie <baoyou.xie@linaro.org> | 2016-09-30 03:48:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-03 01:23:47 -0400 |
commit | 3a82e78c131a8199d38cf653b523c8fa2909df65 (patch) | |
tree | 6c5da7ce48dbf1c0185e8f91b061b0b6012a6b63 /drivers/net | |
parent | 8efebd6e5e93283a72d7a014d6dd8130e6601352 (diff) |
net: ethernet: mediatek: mark symbols static where possible
We get 2 warnings when building kernel with W=1:
drivers/net/ethernet/mediatek/mtk_eth_soc.c:2041:5: warning: no previous prototype for 'mtk_get_link_ksettings' [-Wmissing-prototypes]
drivers/net/ethernet/mediatek/mtk_eth_soc.c:2052:5: warning: no previous prototype for 'mtk_set_link_ksettings' [-Wmissing-prototypes]
In fact, these functions are only used in the file in which they are
declared and don't need a declaration, but can be made static.
So this patch marks these functions with 'static'.
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/mediatek/mtk_eth_soc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index ddf20a00654e..ad4ab979507b 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c | |||
@@ -2038,8 +2038,8 @@ static int mtk_cleanup(struct mtk_eth *eth) | |||
2038 | return 0; | 2038 | return 0; |
2039 | } | 2039 | } |
2040 | 2040 | ||
2041 | int mtk_get_link_ksettings(struct net_device *ndev, | 2041 | static int mtk_get_link_ksettings(struct net_device *ndev, |
2042 | struct ethtool_link_ksettings *cmd) | 2042 | struct ethtool_link_ksettings *cmd) |
2043 | { | 2043 | { |
2044 | struct mtk_mac *mac = netdev_priv(ndev); | 2044 | struct mtk_mac *mac = netdev_priv(ndev); |
2045 | 2045 | ||
@@ -2049,8 +2049,8 @@ int mtk_get_link_ksettings(struct net_device *ndev, | |||
2049 | return phy_ethtool_ksettings_get(ndev->phydev, cmd); | 2049 | return phy_ethtool_ksettings_get(ndev->phydev, cmd); |
2050 | } | 2050 | } |
2051 | 2051 | ||
2052 | int mtk_set_link_ksettings(struct net_device *ndev, | 2052 | static int mtk_set_link_ksettings(struct net_device *ndev, |
2053 | const struct ethtool_link_ksettings *cmd) | 2053 | const struct ethtool_link_ksettings *cmd) |
2054 | { | 2054 | { |
2055 | struct mtk_mac *mac = netdev_priv(ndev); | 2055 | struct mtk_mac *mac = netdev_priv(ndev); |
2056 | 2056 | ||