Commit 036c2e27bc3a6498afb35de017d810194032d765

Authored by Jan Engelhardt
Committed by David S. Miller
1 parent 18c0226e3c

[AF_RXRPC]: constify function pointer tables

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 3 changed files with 7 additions and 7 deletions Side-by-side Diff

... ... @@ -15,7 +15,7 @@
15 15 #include <net/af_rxrpc.h>
16 16 #include "ar-internal.h"
17 17  
18   -const char *rxrpc_call_states[] = {
  18 +const char *const rxrpc_call_states[] = {
19 19 [RXRPC_CALL_CLIENT_SEND_REQUEST] = "ClSndReq",
20 20 [RXRPC_CALL_CLIENT_AWAIT_REPLY] = "ClAwtRpl",
21 21 [RXRPC_CALL_CLIENT_RECV_REPLY] = "ClRcvRpl",
net/rxrpc/ar-internal.h
... ... @@ -565,9 +565,9 @@
565 565 /*
566 566 * ar-proc.c
567 567 */
568   -extern const char *rxrpc_call_states[];
569   -extern struct file_operations rxrpc_call_seq_fops;
570   -extern struct file_operations rxrpc_connection_seq_fops;
  568 +extern const char *const rxrpc_call_states[];
  569 +extern const struct file_operations rxrpc_call_seq_fops;
  570 +extern const struct file_operations rxrpc_connection_seq_fops;
571 571  
572 572 /*
573 573 * ar-recvmsg.c
... ... @@ -14,7 +14,7 @@
14 14 #include <net/af_rxrpc.h>
15 15 #include "ar-internal.h"
16 16  
17   -static const char *rxrpc_conn_states[] = {
  17 +static const char *const rxrpc_conn_states[] = {
18 18 [RXRPC_CONN_UNUSED] = "Unused ",
19 19 [RXRPC_CONN_CLIENT] = "Client ",
20 20 [RXRPC_CONN_SERVER_UNSECURED] = "SvUnsec ",
... ... @@ -98,7 +98,7 @@
98 98 return seq_open(file, &rxrpc_call_seq_ops);
99 99 }
100 100  
101   -struct file_operations rxrpc_call_seq_fops = {
  101 +const struct file_operations rxrpc_call_seq_fops = {
102 102 .owner = THIS_MODULE,
103 103 .open = rxrpc_call_seq_open,
104 104 .read = seq_read,
... ... @@ -183,7 +183,7 @@
183 183 return seq_open(file, &rxrpc_connection_seq_ops);
184 184 }
185 185  
186   -struct file_operations rxrpc_connection_seq_fops = {
  186 +const struct file_operations rxrpc_connection_seq_fops = {
187 187 .owner = THIS_MODULE,
188 188 .open = rxrpc_connection_seq_open,
189 189 .read = seq_read,