diff options
| author | Bhumika Goyal <[email protected]> | 2017-10-17 16:14:23 +0000 |
|---|---|---|
| committer | J. Bruce Fields <[email protected]> | 2017-11-27 21:45:11 +0000 |
| commit | d34971a65b72619508f49cd237283e92f1c329d5 (patch) | |
| tree | da7fa8a000ebed094b6e2cd276a6575e64e2b1f4 /net/sunrpc/cache.c | |
| parent | nfsd: check for use of the closed special stateid (diff) | |
| download | kernel-d34971a65b72619508f49cd237283e92f1c329d5.tar.gz kernel-d34971a65b72619508f49cd237283e92f1c329d5.zip | |
sunrpc: make the function arg as const
Make the struct cache_detail *tmpl argument of the function
cache_create_net as const as it is only getting passed to kmemup having
the argument as const void *.
Add const to the prototype too.
Signed-off-by: Bhumika Goyal <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
Diffstat (limited to 'net/sunrpc/cache.c')
| -rw-r--r-- | net/sunrpc/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index 79d55d949d9a..e68943895be4 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c @@ -1674,7 +1674,7 @@ void cache_unregister_net(struct cache_detail *cd, struct net *net) } EXPORT_SYMBOL_GPL(cache_unregister_net); -struct cache_detail *cache_create_net(struct cache_detail *tmpl, struct net *net) +struct cache_detail *cache_create_net(const struct cache_detail *tmpl, struct net *net) { struct cache_detail *cd; int i; |
