[PATCH] cifs:fix build warnings

Wang, Yalin Yalin.Wang at sonymobile.com
Thu Sep 11 02:50:13 MDT 2014


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 at sonymobile.com>
---
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


More information about the samba-technical mailing list