mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-26 15:45:14 +08:00
chelsio cxgb/cxgb3: Make stats_strings arrays const
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>
This commit is contained in:
parent
45eb516887
commit
9ca683c6d1
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user