Skip to content

Commit

Permalink
net: asix: Staticise non-exported symbols
Browse files Browse the repository at this point in the history
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: Mark Brown <broonie@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Mark Brown authored and David S. Miller committed Aug 13, 2013
1 parent f3dfd20 commit cbeee8c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/net/usb/ax88172a.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,23 +161,25 @@ static const struct net_device_ops ax88172a_netdev_ops = {
.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)
return -ENODEV;

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)
return -ENODEV;

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)
return -ENODEV;
Expand Down

0 comments on commit cbeee8c

Please sign in to comment.