From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751779AbaHJUv4 (ORCPT ); Sun, 10 Aug 2014 16:51:56 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:41834 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751692AbaHJUvz (ORCPT ); Sun, 10 Aug 2014 16:51:55 -0400 From: Geert Uytterhoeven To: Steve French , Sachin Prabhu Cc: linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/2] cifs: Remove unused sess_auth_lanman() for !CONFIG_CIFS_WEAK_PW_HASH case Date: Sun, 10 Aug 2014 22:51:48 +0200 Message-Id: <1407703909-24350-1-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If CONFIG_CIFS_WEAK_PW_HASH is not set: fs/cifs/sess.c:751: warning: ‘sess_auth_lanman’ defined but not used Commit cc87c47d9d7ac25554aa81cd8ded56e75f79c198 ("cifs: Separate rawntlmssp auth from CIFS_SessSetup()") removed the sole user of the dummy version of sess_auth_lanman() in the non-CONFIG_CIFS_WEAK_PW_HASH case, but forgot to remove the actual function definition. Remove the dummy version to fix this. Signed-off-by: Geert Uytterhoeven --- fs/cifs/sess.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index 39ee32688eac..8090ad3c5ea5 100644 --- a/fs/cifs/sess.c +++ b/fs/cifs/sess.c @@ -743,16 +743,7 @@ 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 +#endif /* CONFIG_CIFS_WEAK_PW_HASH */ static void sess_auth_ntlm(struct sess_data *sess_data) -- 1.9.1