ixgbe: make ethtool strings table const
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 5 Jan 2012 06:29:54 +0000 (06:29 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 3 Feb 2012 11:05:43 +0000 (03:05 -0800)
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c

index 1fd510c581bc3cff7c230f02ca11e59cae88e14e..1f31a04d3c919f6311c18c6e95fea4b647cae868 100644 (file)
@@ -58,7 +58,7 @@ struct ixgbe_stats {
                                sizeof(((struct rtnl_link_stats64 *)0)->m), \
                                offsetof(struct rtnl_link_stats64, m)
 
-static struct ixgbe_stats ixgbe_gstrings_stats[] = {
+static const struct ixgbe_stats ixgbe_gstrings_stats[] = {
        {"rx_packets", IXGBE_NETDEV_STAT(rx_packets)},
        {"tx_packets", IXGBE_NETDEV_STAT(tx_packets)},
        {"rx_bytes", IXGBE_NETDEV_STAT(rx_bytes)},