* [PATCH net-next] xgmac: cleanups
@ 2012-01-04 23:01 Stephen Hemminger
2012-01-05 18:23 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2012-01-04 23:01 UTC (permalink / raw)
To: David Miller; +Cc: Rob Herring, netdev
Make local function static, make ethtool_ops const.
Compile tested only.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
--- a/drivers/net/ethernet/calxeda/xgmac.c 2011-12-07 10:54:18.724278422 -0800
+++ b/drivers/net/ethernet/calxeda/xgmac.c 2012-01-04 14:27:38.311770831 -0800
@@ -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,
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-05 18:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-04 23:01 [PATCH net-next] xgmac: cleanups Stephen Hemminger
2012-01-05 18:23 ` 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).