netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] net: asix: Staticise non-exported symbols
@ 2013-08-09 17:31 Mark Brown
  2013-08-09 17:31 ` [PATCH 2/2] net: asix: Move declaration of ax88172a_info to shared header Mark Brown
  2013-08-13 21:14 ` [PATCH 1/2] net: asix: Staticise non-exported symbols David Miller
  0 siblings, 2 replies; 9+ messages in thread
From: Mark Brown @ 2013-08-09 17:31 UTC (permalink / raw)
  To: David S. Miller; +Cc: linux-usb, netdev, linaro-kernel, Mark Brown

From: Mark Brown <broonie@linaro.org>

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>
---
 drivers/net/usb/ax88172a.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/net/usb/ax88172a.c b/drivers/net/usb/ax88172a.c
index d012203..723b387 100644
--- a/drivers/net/usb/ax88172a.c
+++ b/drivers/net/usb/ax88172a.c
@@ -161,7 +161,8 @@ 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;
@@ -169,7 +170,8 @@ int ax88172a_get_settings(struct net_device *net, struct ethtool_cmd *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)
 		return -ENODEV;
@@ -177,7 +179,7 @@ int ax88172a_set_settings(struct net_device *net, struct ethtool_cmd *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)
 		return -ENODEV;
-- 
1.8.4.rc1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-08-13 21:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-09 17:31 [PATCH 1/2] net: asix: Staticise non-exported symbols Mark Brown
2013-08-09 17:31 ` [PATCH 2/2] net: asix: Move declaration of ax88172a_info to shared header Mark Brown
     [not found]   ` <1376069482-16951-2-git-send-email-broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2013-08-09 17:39     ` Fabio Estevam
2013-08-09 17:40       ` Stephen Hemminger
     [not found]         ` <20130809104016.236fcd9d-We1ePj4FEcvRI77zikRAJc56i+j3xesD0e7PPNI6Mm0@public.gmane.org>
2013-08-09 17:50           ` Eric Dumazet
2013-08-09 18:04             ` David Miller
2013-08-09 17:53         ` Fabio Estevam
2013-08-13 21:14   ` David Miller
2013-08-13 21:14 ` [PATCH 1/2] net: asix: Staticise non-exported symbols David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).