]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ixgbe: make ethtool strings table const
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 5 Jan 2012 06:29:54 +0000 (06:29 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 14:47:17 +0000 (22:47 +0800)
(cherry picked from commit 1bba2e81f5575825b59146f982004415d3751e6b)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_ethtool.c

index 22497aac634ac9ec06fde07362453d94e305b24d..e4f90a147cdcafe3c8f0965f40ba646cabb41a99 100644 (file)
@@ -57,7 +57,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)},