chelsio cxgb/cxgb3: Make stats_strings arrays const
authorJoe Perches <joe@perches.com>
Wed, 1 Apr 2015 15:49:24 +0000 (08:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Apr 2015 18:41:20 +0000 (14:41 -0400)
Move ~2KB of strings in each driver from data to text.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb/cxgb2.c
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c

index 186566bfdbc8c579ada4136f0d71a9242e9b7629..f5f1b0b51ebd225c4d82967391e5dedda2a7848f 100644 (file)
@@ -354,7 +354,7 @@ static void set_msglevel(struct net_device *dev, u32 val)
        adapter->msg_enable = val;
 }
 
-static char stats_strings[][ETH_GSTRING_LEN] = {
+static const char stats_strings[][ETH_GSTRING_LEN] = {
        "TxOctetsOK",
        "TxOctetsBad",
        "TxUnicastFramesOK",
index db76f70404551c84b924f560957ca740975eebf2..b96e4bfcac41a8086d5fbb45bf508bd5175072ee 100644 (file)
@@ -1537,7 +1537,7 @@ static void set_msglevel(struct net_device *dev, u32 val)
        adapter->msg_enable = val;
 }
 
-static char stats_strings[][ETH_GSTRING_LEN] = {
+static const char stats_strings[][ETH_GSTRING_LEN] = {
        "TxOctetsOK         ",
        "TxFramesOK         ",
        "TxMulticastFramesOK",