mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
db71789c01
commit
36cbd3dcc1
36 changed files with 74 additions and 66 deletions
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
static unsigned rxrpc_ack_defer = 1;
|
||||
|
||||
static const char *rxrpc_acks[] = {
|
||||
static const char *const rxrpc_acks[] = {
|
||||
"---", "REQ", "DUP", "OOS", "WIN", "MEM", "PNG", "PNR", "DLY", "IDL",
|
||||
"-?-"
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue