diff options
Diffstat (limited to 'net/sunrpc/svcauth_unix.c')
-rw-r--r-- | net/sunrpc/svcauth_unix.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c index a1852e19ed0c..c3f9e1ef7f53 100644 --- a/net/sunrpc/svcauth_unix.c +++ b/net/sunrpc/svcauth_unix.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <linux/sunrpc/svcsock.h> | 6 | #include <linux/sunrpc/svcsock.h> |
7 | #include <linux/sunrpc/svcauth.h> | 7 | #include <linux/sunrpc/svcauth.h> |
8 | #include <linux/sunrpc/gss_api.h> | 8 | #include <linux/sunrpc/gss_api.h> |
9 | #include <linux/sunrpc/addr.h> | ||
9 | #include <linux/err.h> | 10 | #include <linux/err.h> |
10 | #include <linux/seq_file.h> | 11 | #include <linux/seq_file.h> |
11 | #include <linux/hash.h> | 12 | #include <linux/hash.h> |
@@ -17,7 +18,6 @@ | |||
17 | #include <linux/user_namespace.h> | 18 | #include <linux/user_namespace.h> |
18 | #define RPCDBG_FACILITY RPCDBG_AUTH | 19 | #define RPCDBG_FACILITY RPCDBG_AUTH |
19 | 20 | ||
20 | #include <linux/sunrpc/clnt.h> | ||
21 | 21 | ||
22 | #include "netns.h" | 22 | #include "netns.h" |
23 | 23 | ||
@@ -157,11 +157,6 @@ static void ip_map_request(struct cache_detail *cd, | |||
157 | (*bpp)[-1] = '\n'; | 157 | (*bpp)[-1] = '\n'; |
158 | } | 158 | } |
159 | 159 | ||
160 | static int ip_map_upcall(struct cache_detail *cd, struct cache_head *h) | ||
161 | { | ||
162 | return sunrpc_cache_pipe_upcall(cd, h, ip_map_request); | ||
163 | } | ||
164 | |||
165 | static struct ip_map *__ip_map_lookup(struct cache_detail *cd, char *class, struct in6_addr *addr); | 160 | static struct ip_map *__ip_map_lookup(struct cache_detail *cd, char *class, struct in6_addr *addr); |
166 | static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm, struct unix_domain *udom, time_t expiry); | 161 | static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm, struct unix_domain *udom, time_t expiry); |
167 | 162 | ||
@@ -475,11 +470,6 @@ static void unix_gid_request(struct cache_detail *cd, | |||
475 | (*bpp)[-1] = '\n'; | 470 | (*bpp)[-1] = '\n'; |
476 | } | 471 | } |
477 | 472 | ||
478 | static int unix_gid_upcall(struct cache_detail *cd, struct cache_head *h) | ||
479 | { | ||
480 | return sunrpc_cache_pipe_upcall(cd, h, unix_gid_request); | ||
481 | } | ||
482 | |||
483 | static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid); | 473 | static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid); |
484 | 474 | ||
485 | static int unix_gid_parse(struct cache_detail *cd, | 475 | static int unix_gid_parse(struct cache_detail *cd, |
@@ -586,7 +576,7 @@ static struct cache_detail unix_gid_cache_template = { | |||
586 | .hash_size = GID_HASHMAX, | 576 | .hash_size = GID_HASHMAX, |
587 | .name = "auth.unix.gid", | 577 | .name = "auth.unix.gid", |
588 | .cache_put = unix_gid_put, | 578 | .cache_put = unix_gid_put, |
589 | .cache_upcall = unix_gid_upcall, | 579 | .cache_request = unix_gid_request, |
590 | .cache_parse = unix_gid_parse, | 580 | .cache_parse = unix_gid_parse, |
591 | .cache_show = unix_gid_show, | 581 | .cache_show = unix_gid_show, |
592 | .match = unix_gid_match, | 582 | .match = unix_gid_match, |
@@ -885,7 +875,7 @@ static struct cache_detail ip_map_cache_template = { | |||
885 | .hash_size = IP_HASHMAX, | 875 | .hash_size = IP_HASHMAX, |
886 | .name = "auth.unix.ip", | 876 | .name = "auth.unix.ip", |
887 | .cache_put = ip_map_put, | 877 | .cache_put = ip_map_put, |
888 | .cache_upcall = ip_map_upcall, | 878 | .cache_request = ip_map_request, |
889 | .cache_parse = ip_map_parse, | 879 | .cache_parse = ip_map_parse, |
890 | .cache_show = ip_map_show, | 880 | .cache_show = ip_map_show, |
891 | .match = ip_map_match, | 881 | .match = ip_map_match, |