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>
This commit is contained in:
parent
b1df763723
commit
0ff3bab530
1 changed files with 10 additions and 1 deletions
|
@ -1283,6 +1283,8 @@ static bool use_gss_proxy(struct net *net)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_PROC_FS
|
||||||
|
|
||||||
static bool set_gss_proxy(struct net *net, int type)
|
static bool set_gss_proxy(struct net *net, int type)
|
||||||
{
|
{
|
||||||
struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
|
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));
|
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,
|
static ssize_t write_gssp(struct file *file, const char __user *buf,
|
||||||
size_t count, loff_t *ppos)
|
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);
|
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 */
|
#endif /* CONFIG_PROC_FS */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue