[PATCH] cifs:fix build warnings

From: Wang, Yalin
Date: Thu Sep 11 2014 - 04:39:33 EST


this fix the following warningsï
kernel.torvalds.git/fs/cifs/sess.c:751:1: warning: 'sess_auth_lanman' defined but not used [-Wunused-function]
kernel.torvalds.git/fs/cifs/sess.c:1109:1: warning: 'sess_auth_kerberos' defined but not used [-Wunused-function]

Signed-off-by: Yalin Wang <yalin.wang@xxxxxxxxxxxxxx>
---
fs/cifs/sess.c | 19 -------------------
1 file changed, 19 deletions(-)

diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c
index 3a5e833..7bc9c03 100644
--- a/fs/cifs/sess.c
+++ b/fs/cifs/sess.c
@@ -744,15 +744,6 @@ out:
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ sess_data->func = NULL;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ sess_free_buffer(sess_data);
}
-
-#else
-
-static void
-sess_auth_lanman(struct sess_data *sess_data)
-{
-ÂÂÂÂÂÂÂÂÂÂÂÂÂ sess_data->result = -EOPNOTSUPP;
-ÂÂÂÂÂÂÂÂÂÂÂÂÂ sess_data->func = NULL;
-}
#endif

Âstatic void
@@ -1102,16 +1093,6 @@ out:
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ kfree(ses->auth_key.response);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ses->auth_key.response = NULL;
}
-
-#else
-
-static void
-sess_auth_kerberos(struct sess_data *sess_data)
-{
-ÂÂÂÂÂÂÂÂÂÂÂÂÂ cifs_dbg(VFS, "Kerberos negotiated but upcall support disabled!\n");
-ÂÂÂÂÂÂÂÂÂÂÂÂÂ sess_data->result = -ENOSYS;
-ÂÂÂÂÂÂÂÂÂÂÂÂÂ sess_data->func = NULL;
-}
#endif /* ! CONFIG_CIFS_UPCALL */

Â/*
--
2.1.0