]> git.baikalelectronics.ru Git - kernel.git/commit
sunrpc: make the function arg as const
authorBhumika Goyal <bhumirks@gmail.com>
Tue, 17 Oct 2017 16:14:23 +0000 (18:14 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 27 Nov 2017 21:45:11 +0000 (16:45 -0500)
commitc69f08f6055e32a04e54d556344b8670f7dd4dae
treeda7fa8a000ebed094b6e2cd276a6575e64e2b1f4
parentafebdcee27a73aa7470124b4ed0265fb56a85614
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 <bhumirks@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/sunrpc/cache.h
net/sunrpc/cache.c