diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-10-17 19:14:26 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2017-11-28 00:45:11 +0300 |
commit | ee24eac3ebb781c12a654985e33ecaa07f4d0f95 (patch) | |
tree | e16be0528107d0149db7fc3af260ef547abb702b /net/sunrpc/auth_gss | |
parent | ae2e408ec2e861b0e7dceea1808e4305a9381c2f (diff) | |
download | linux-ee24eac3ebb781c12a654985e33ecaa07f4d0f95.tar.xz |
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>
Diffstat (limited to 'net/sunrpc/auth_gss')
-rw-r--r-- | net/sunrpc/auth_gss/svcauth_gss.c | 4 |
1 files changed, 2 insertions, 2 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: return status; } -static struct cache_detail rsi_cache_template = { +static const struct cache_detail rsi_cache_template = { .owner = THIS_MODULE, .hash_size = RSI_HASHMAX, .name = "auth.rpcsec.init", @@ -524,7 +524,7 @@ out: return status; } -static struct cache_detail rsc_cache_template = { +static const struct cache_detail rsc_cache_template = { .owner = THIS_MODULE, .hash_size = RSC_HASHMAX, .name = "auth.rpcsec.context", |