aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sunrpc/auth_gss/svcauth_gss.c11
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)
1283 return 0; 1283 return 0;
1284} 1284}
1285 1285
1286#ifdef CONFIG_PROC_FS
1287
1286static bool set_gss_proxy(struct net *net, int type) 1288static bool set_gss_proxy(struct net *net, int type)
1287{ 1289{
1288 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); 1290 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
@@ -1320,7 +1322,6 @@ static int wait_for_gss_proxy(struct net *net)
1320 return wait_event_interruptible(sn->gssp_wq, gssp_ready(sn)); 1322 return wait_event_interruptible(sn->gssp_wq, gssp_ready(sn));
1321} 1323}
1322 1324
1323#ifdef CONFIG_PROC_FS
1324 1325
1325static ssize_t write_gssp(struct file *file, const char __user *buf, 1326static ssize_t write_gssp(struct file *file, const char __user *buf,
1326 size_t count, loff_t *ppos) 1327 size_t count, loff_t *ppos)
@@ -1406,6 +1407,14 @@ static void destroy_use_gss_proxy_proc_entry(struct net *net)
1406 clear_gssp_clnt(sn); 1407 clear_gssp_clnt(sn);
1407 } 1408 }
1408} 1409}
1410#else /* CONFIG_PROC_FS */
1411
1412static int create_use_gss_proxy_proc_entry(struct net *net)
1413{
1414 return 0;
1415}
1416
1417static void destroy_use_gss_proxy_proc_entry(struct net *net) {}
1409 1418
1410#endif /* CONFIG_PROC_FS */ 1419#endif /* CONFIG_PROC_FS */
1411 1420