[<prev] [next>] [day] [month] [year] [list]
Message-ID: <35FD53F367049845BC99AC72306C23D103CDBFBFB01C@CNBJMBX05.corpusers.net>
Date: Thu, 11 Sep 2014 16:39:17 +0800
From: "Wang, Yalin" <Yalin.Wang@...ymobile.com>
To: "'torvalds@...ux-foundation.org'" <torvalds@...ux-foundation.org>,
"'sfrench@...ba.org'" <sfrench@...ba.org>,
"'linux-kernel@...r.kernel.org'" <linux-kernel@...r.kernel.org>,
"'linux@....linux.org.uk'" <linux@....linux.org.uk>,
"'linux-cifs@...r.kernel.org'" <linux-cifs@...r.kernel.org>,
"'samba-technical@...ts.samba.org'" <samba-technical@...ts.samba.org>
Subject: [PATCH] cifs:fix build warnings
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@...ymobile.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
Powered by blists - more mailing lists