From: Stephen Hemminger Date: Thu, 5 Jan 2012 06:29:54 +0000 (+0000) Subject: ixgbe: make ethtool strings table const X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~125 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=389b4c35d09add959a1e1313de442869bd487b52;p=users%2Fjedix%2Flinux-maple.git ixgbe: make ethtool strings table const (cherry picked from commit 1bba2e81f5575825b59146f982004415d3751e6b) Signed-off-by: Stephen Hemminger Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher Signed-off-by: Joe Jin --- diff --git a/drivers/net/ixgbe/ixgbe_ethtool.c b/drivers/net/ixgbe/ixgbe_ethtool.c index 22497aac634ac..e4f90a147cdca 100644 --- a/drivers/net/ixgbe/ixgbe_ethtool.c +++ b/drivers/net/ixgbe/ixgbe_ethtool.c @@ -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)},