net: mark read-only arrays as const
String literals are constant, and usually, we can also tag the array of pointers const too, moving it to the .rodata section. Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
db71789c01
commit
36cbd3dcc1
@@ -39,7 +39,7 @@
|
||||
|
||||
DEFINE_PER_CPU(struct rds_ib_statistics, rds_ib_stats) ____cacheline_aligned;
|
||||
|
||||
static char *rds_ib_stat_names[] = {
|
||||
static const char *const rds_ib_stat_names[] = {
|
||||
"ib_connect_raced",
|
||||
"ib_listen_closed_stale",
|
||||
"ib_tx_cq_call",
|
||||
|
Reference in New Issue
Block a user