diff options
author | J. Bruce Fields <bfields@redhat.com> | 2013-04-29 17:03:31 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2013-04-29 17:16:26 -0400 |
commit | 0ff3bab530c35dd6499f7f2d639816df2e1241cd (patch) | |
tree | 46d24b9802d36e810311797de37e045113786b0e /net/sunrpc | |
parent | b1df7637232927ac69ed1a32e9c6b768f635b7d4 (diff) |
SUNRPC: define {create,destroy}_use_gss_proxy_proc_entry in !PROC case
Though I wonder whether we should really just depend on CONFIG_PROC_FS
at some point.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/auth_gss/svcauth_gss.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c index 1c66a3b78329..b70ac1cec8f5 100644 --- a/net/sunrpc/auth_gss/svcauth_gss.c +++ b/net/sunrpc/auth_gss/svcauth_gss.c @@ -1283,6 +1283,8 @@ static bool use_gss_proxy(struct net *net) return 0; } +#ifdef CONFIG_PROC_FS + static bool set_gss_proxy(struct net *net, int type) { struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); @@ -1320,7 +1322,6 @@ static int wait_for_gss_proxy(struct net *net) return wait_event_interruptible(sn->gssp_wq, gssp_ready(sn)); } -#ifdef CONFIG_PROC_FS static ssize_t write_gssp(struct file *file, const char __user *buf, size_t count, loff_t *ppos) @@ -1406,6 +1407,14 @@ static void destroy_use_gss_proxy_proc_entry(struct net *net) clear_gssp_clnt(sn); } } +#else /* CONFIG_PROC_FS */ + +static int create_use_gss_proxy_proc_entry(struct net *net) +{ + return 0; +} + +static void destroy_use_gss_proxy_proc_entry(struct net *net) {} #endif /* CONFIG_PROC_FS */ |