Commit cbeee8c65f39045983f7ce0980254c9d66501af0

Authored by Mark Brown
Committed by David S. Miller
1 parent f3dfd20860

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: Mark Brown <broonie@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 5 additions and 3 deletions Side-by-side Diff

drivers/net/usb/ax88172a.c
... ... @@ -161,7 +161,8 @@
161 161 .ndo_set_rx_mode = asix_set_multicast,
162 162 };
163 163  
164   -int ax88172a_get_settings(struct net_device *net, struct ethtool_cmd *cmd)
  164 +static int ax88172a_get_settings(struct net_device *net,
  165 + struct ethtool_cmd *cmd)
165 166 {
166 167 if (!net->phydev)
167 168 return -ENODEV;
... ... @@ -169,7 +170,8 @@
169 170 return phy_ethtool_gset(net->phydev, cmd);
170 171 }
171 172  
172   -int ax88172a_set_settings(struct net_device *net, struct ethtool_cmd *cmd)
  173 +static int ax88172a_set_settings(struct net_device *net,
  174 + struct ethtool_cmd *cmd)
173 175 {
174 176 if (!net->phydev)
175 177 return -ENODEV;
... ... @@ -177,7 +179,7 @@
177 179 return phy_ethtool_sset(net->phydev, cmd);
178 180 }
179 181  
180   -int ax88172a_nway_reset(struct net_device *net)
  182 +static int ax88172a_nway_reset(struct net_device *net)
181 183 {
182 184 if (!net->phydev)
183 185 return -ENODEV;