提交 cbeee8c6 编写于 作者: M Mark Brown 提交者: David S. Miller

net: asix: Staticise non-exported symbols

Make functions that are only referenced from ops structures static, they
do not need to be in the global namespace and sparse complains about this.
Signed-off-by: NMark Brown <broonie@linaro.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f3dfd208
...@@ -161,7 +161,8 @@ static const struct net_device_ops ax88172a_netdev_ops = { ...@@ -161,7 +161,8 @@ static const struct net_device_ops ax88172a_netdev_ops = {
.ndo_set_rx_mode = asix_set_multicast, .ndo_set_rx_mode = asix_set_multicast,
}; };
int ax88172a_get_settings(struct net_device *net, struct ethtool_cmd *cmd) static int ax88172a_get_settings(struct net_device *net,
struct ethtool_cmd *cmd)
{ {
if (!net->phydev) if (!net->phydev)
return -ENODEV; return -ENODEV;
...@@ -169,7 +170,8 @@ int ax88172a_get_settings(struct net_device *net, struct ethtool_cmd *cmd) ...@@ -169,7 +170,8 @@ int ax88172a_get_settings(struct net_device *net, struct ethtool_cmd *cmd)
return phy_ethtool_gset(net->phydev, cmd); return phy_ethtool_gset(net->phydev, cmd);
} }
int ax88172a_set_settings(struct net_device *net, struct ethtool_cmd *cmd) static int ax88172a_set_settings(struct net_device *net,
struct ethtool_cmd *cmd)
{ {
if (!net->phydev) if (!net->phydev)
return -ENODEV; return -ENODEV;
...@@ -177,7 +179,7 @@ int ax88172a_set_settings(struct net_device *net, struct ethtool_cmd *cmd) ...@@ -177,7 +179,7 @@ int ax88172a_set_settings(struct net_device *net, struct ethtool_cmd *cmd)
return phy_ethtool_sset(net->phydev, cmd); return phy_ethtool_sset(net->phydev, cmd);
} }
int ax88172a_nway_reset(struct net_device *net) static int ax88172a_nway_reset(struct net_device *net)
{ {
if (!net->phydev) if (!net->phydev)
return -ENODEV; return -ENODEV;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册