[AF_RXRPC]: constify function pointer tables
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
18c0226e3c
commit
036c2e27bc
@ -14,7 +14,7 @@
|
||||
#include <net/af_rxrpc.h>
|
||||
#include "ar-internal.h"
|
||||
|
||||
static const char *rxrpc_conn_states[] = {
|
||||
static const char *const rxrpc_conn_states[] = {
|
||||
[RXRPC_CONN_UNUSED] = "Unused ",
|
||||
[RXRPC_CONN_CLIENT] = "Client ",
|
||||
[RXRPC_CONN_SERVER_UNSECURED] = "SvUnsec ",
|
||||
@ -98,7 +98,7 @@ static int rxrpc_call_seq_open(struct inode *inode, struct file *file)
|
||||
return seq_open(file, &rxrpc_call_seq_ops);
|
||||
}
|
||||
|
||||
struct file_operations rxrpc_call_seq_fops = {
|
||||
const struct file_operations rxrpc_call_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = rxrpc_call_seq_open,
|
||||
.read = seq_read,
|
||||
@ -183,7 +183,7 @@ static int rxrpc_connection_seq_open(struct inode *inode, struct file *file)
|
||||
return seq_open(file, &rxrpc_connection_seq_ops);
|
||||
}
|
||||
|
||||
struct file_operations rxrpc_connection_seq_fops = {
|
||||
const struct file_operations rxrpc_connection_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = rxrpc_connection_seq_open,
|
||||
.read = seq_read,
|
||||
|
Reference in New Issue
Block a user