]> 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)
commitedb97f34241578dad9a34b153e3d31ddca107208
treeda7fa8a000ebed094b6e2cd276a6575e64e2b1f4
parent596a4a83ae31694489e55f94619616f648019324
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