diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-10-17 12:14:26 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2017-11-27 16:45:11 -0500 |
commit | ee24eac3ebb781c12a654985e33ecaa07f4d0f95 (patch) | |
tree | e16be0528107d0149db7fc3af260ef547abb702b /net/sunrpc/svcauth_unix.c | |
parent | ae2e408ec2e861b0e7dceea1808e4305a9381c2f (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>
Diffstat (limited to 'net/sunrpc/svcauth_unix.c')
-rw-r--r-- | net/sunrpc/svcauth_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 | ||
572 | static struct cache_detail unix_gid_cache_template = { | 572 | static 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 | ||
865 | static struct cache_detail ip_map_cache_template = { | 865 | static 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", |