aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-10-17 12:14:26 -0400
committerJ. Bruce Fields <bfields@redhat.com>2017-11-27 16:45:11 -0500
commitee24eac3ebb781c12a654985e33ecaa07f4d0f95 (patch)
treee16be0528107d0149db7fc3af260ef547abb702b
parentae2e408ec2e861b0e7dceea1808e4305a9381c2f (diff)
SUNRPC: make cache_detail structures const
Make these const as they are only getting passed to the function cache_create_net having the argument as const. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r--net/sunrpc/auth_gss/svcauth_gss.c4
-rw-r--r--net/sunrpc/svcauth_unix.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c
index 73165e9ca5bf..5dd4e6c9fef2 100644
--- a/net/sunrpc/auth_gss/svcauth_gss.c
+++ b/net/sunrpc/auth_gss/svcauth_gss.c
@@ -264,7 +264,7 @@ out:
264 return status; 264 return status;
265} 265}
266 266
267static struct cache_detail rsi_cache_template = { 267static const struct cache_detail rsi_cache_template = {
268 .owner = THIS_MODULE, 268 .owner = THIS_MODULE,
269 .hash_size = RSI_HASHMAX, 269 .hash_size = RSI_HASHMAX,
270 .name = "auth.rpcsec.init", 270 .name = "auth.rpcsec.init",
@@ -524,7 +524,7 @@ out:
524 return status; 524 return status;
525} 525}
526 526
527static struct cache_detail rsc_cache_template = { 527static const struct cache_detail rsc_cache_template = {
528 .owner = THIS_MODULE, 528 .owner = THIS_MODULE,
529 .hash_size = RSC_HASHMAX, 529 .hash_size = RSC_HASHMAX,
530 .name = "auth.rpcsec.context", 530 .name = "auth.rpcsec.context",
diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c
index f81eaa8e0888..740b67d5a733 100644
--- a/net/sunrpc/svcauth_unix.c
+++ b/net/sunrpc/svcauth_unix.c
@@ -569,7 +569,7 @@ static int unix_gid_show(struct seq_file *m,
569 return 0; 569 return 0;
570} 570}
571 571
572static struct cache_detail unix_gid_cache_template = { 572static const struct cache_detail unix_gid_cache_template = {
573 .owner = THIS_MODULE, 573 .owner = THIS_MODULE,
574 .hash_size = GID_HASHMAX, 574 .hash_size = GID_HASHMAX,
575 .name = "auth.unix.gid", 575 .name = "auth.unix.gid",
@@ -862,7 +862,7 @@ struct auth_ops svcauth_unix = {
862 .set_client = svcauth_unix_set_client, 862 .set_client = svcauth_unix_set_client,
863}; 863};
864 864
865static struct cache_detail ip_map_cache_template = { 865static const struct cache_detail ip_map_cache_template = {
866 .owner = THIS_MODULE, 866 .owner = THIS_MODULE,
867 .hash_size = IP_HASHMAX, 867 .hash_size = IP_HASHMAX,
868 .name = "auth.unix.ip", 868 .name = "auth.unix.ip",