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

orang tua
db71789c01
melakukan
36cbd3dcc1
@@ -143,7 +143,7 @@ out:
|
||||
return 0;
|
||||
}
|
||||
|
||||
static char *llc_conn_state_names[] = {
|
||||
static const char *const llc_conn_state_names[] = {
|
||||
[LLC_CONN_STATE_ADM] = "adm",
|
||||
[LLC_CONN_STATE_SETUP] = "setup",
|
||||
[LLC_CONN_STATE_NORMAL] = "normal",
|
||||
|
Reference in New Issue
Block a user