Skip to contentSkip to conversation

xgmac: cleanups

PATCH Applied Stephen Hemminger 2 participants 2 messages Jan 4, 2012 – Jan 5, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xgmac: cleanups

Make local function static, make ethtool_ops const. Compile tested only.

drivers/net/ethernet/calxeda/xgmac.c +2 -2
@@ -1440,7 +1440,7 @@ static void xgmac_poll_controller(struct
 }
 #endif
 
-struct rtnl_link_stats64 *
+static struct rtnl_link_stats64 *
 xgmac_get_stats64(struct net_device *dev,
 		       struct rtnl_link_stats64 *storage)
 {
@@ -1675,7 +1675,7 @@ static int xgmac_set_wol(struct net_devi
 	return 0;
 }
 
-static struct ethtool_ops xgmac_ethtool_ops = {
+static const struct ethtool_ops xgmac_ethtool_ops = {
 	.get_settings = xgmac_ethtool_getsettings,
 	.get_link = ethtool_op_get_link,
 	.get_pauseparam = xgmac_get_pauseparam,