Commit 9ca683c6 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

chelsio cxgb/cxgb3: Make stats_strings arrays const

Move ~2KB of strings in each driver from data to text.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 45eb5168
...@@ -354,7 +354,7 @@ static void set_msglevel(struct net_device *dev, u32 val) ...@@ -354,7 +354,7 @@ static void set_msglevel(struct net_device *dev, u32 val)
adapter->msg_enable = val; adapter->msg_enable = val;
} }
static char stats_strings[][ETH_GSTRING_LEN] = { static const char stats_strings[][ETH_GSTRING_LEN] = {
"TxOctetsOK", "TxOctetsOK",
"TxOctetsBad", "TxOctetsBad",
"TxUnicastFramesOK", "TxUnicastFramesOK",
......
...@@ -1537,7 +1537,7 @@ static void set_msglevel(struct net_device *dev, u32 val) ...@@ -1537,7 +1537,7 @@ static void set_msglevel(struct net_device *dev, u32 val)
adapter->msg_enable = val; adapter->msg_enable = val;
} }
static char stats_strings[][ETH_GSTRING_LEN] = { static const char stats_strings[][ETH_GSTRING_LEN] = {
"TxOctetsOK ", "TxOctetsOK ",
"TxFramesOK ", "TxFramesOK ",
"TxMulticastFramesOK", "TxMulticastFramesOK",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment