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 ��.n��������+%������w��{.n�����{�����ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f