Skip to content

Commit

Permalink
[AF_RXRPC]: constify function pointer tables
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Engelhardt <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Jan Engelhardt authored and davem330 committed Feb 1, 2008
1 parent 18c0226 commit 036c2e2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion net/rxrpc/ar-call.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <net/af_rxrpc.h>
#include "ar-internal.h"

const char *rxrpc_call_states[] = {
const char *const rxrpc_call_states[] = {
[RXRPC_CALL_CLIENT_SEND_REQUEST] = "ClSndReq",
[RXRPC_CALL_CLIENT_AWAIT_REPLY] = "ClAwtRpl",
[RXRPC_CALL_CLIENT_RECV_REPLY] = "ClRcvRpl",
Expand Down
6 changes: 3 additions & 3 deletions net/rxrpc/ar-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,9 @@ extern void __exit rxrpc_destroy_all_peers(void);
/*
* ar-proc.c
*/
extern const char *rxrpc_call_states[];
extern struct file_operations rxrpc_call_seq_fops;
extern struct file_operations rxrpc_connection_seq_fops;
extern const char *const rxrpc_call_states[];
extern const struct file_operations rxrpc_call_seq_fops;
extern const struct file_operations rxrpc_connection_seq_fops;

/*
* ar-recvmsg.c
Expand Down
6 changes: 3 additions & 3 deletions net/rxrpc/ar-proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ",
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 036c2e2

Please sign in to comment.