aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/auth.c2
-rw-r--r--net/sunrpc/xprtsock.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c
index 47f38be4155f..02f53674dc39 100644
--- a/net/sunrpc/auth.c
+++ b/net/sunrpc/auth.c
@@ -72,7 +72,7 @@ static int param_get_hashtbl_sz(char *buffer, const struct kernel_param *kp)
72 72
73#define param_check_hashtbl_sz(name, p) __param_check(name, p, unsigned int); 73#define param_check_hashtbl_sz(name, p) __param_check(name, p, unsigned int);
74 74
75static struct kernel_param_ops param_ops_hashtbl_sz = { 75static const struct kernel_param_ops param_ops_hashtbl_sz = {
76 .set = param_set_hashtbl_sz, 76 .set = param_set_hashtbl_sz,
77 .get = param_get_hashtbl_sz, 77 .get = param_get_hashtbl_sz,
78}; 78};
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 66891e32c5e3..b0517287075b 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -2982,7 +2982,7 @@ static int param_set_portnr(const char *val, const struct kernel_param *kp)
2982 RPC_MAX_RESVPORT); 2982 RPC_MAX_RESVPORT);
2983} 2983}
2984 2984
2985static struct kernel_param_ops param_ops_portnr = { 2985static const struct kernel_param_ops param_ops_portnr = {
2986 .set = param_set_portnr, 2986 .set = param_set_portnr,
2987 .get = param_get_uint, 2987 .get = param_get_uint,
2988}; 2988};
@@ -3001,7 +3001,7 @@ static int param_set_slot_table_size(const char *val,
3001 RPC_MAX_SLOT_TABLE); 3001 RPC_MAX_SLOT_TABLE);
3002} 3002}
3003 3003
3004static struct kernel_param_ops param_ops_slot_table_size = { 3004static const struct kernel_param_ops param_ops_slot_table_size = {
3005 .set = param_set_slot_table_size, 3005 .set = param_set_slot_table_size,
3006 .get = param_get_uint, 3006 .get = param_get_uint,
3007}; 3007};
@@ -3017,7 +3017,7 @@ static int param_set_max_slot_table_size(const char *val,
3017 RPC_MAX_SLOT_TABLE_LIMIT); 3017 RPC_MAX_SLOT_TABLE_LIMIT);
3018} 3018}
3019 3019
3020static struct kernel_param_ops param_ops_max_slot_table_size = { 3020static const struct kernel_param_ops param_ops_max_slot_table_size = {
3021 .set = param_set_max_slot_table_size, 3021 .set = param_set_max_slot_table_size,
3022 .get = param_get_uint, 3022 .get = param_get_uint,
3023}; 3023};