From patchwork Mon Sep 8 15:20:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 4863181 Return-Path: X-Original-To: patchwork-cifs-client@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D7D2C9F32F for ; Mon, 8 Sep 2014 15:21:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BF29520131 for ; Mon, 8 Sep 2014 15:21:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7B48020109 for ; Mon, 8 Sep 2014 15:21:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753188AbaIHPVX (ORCPT ); Mon, 8 Sep 2014 11:21:23 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:60412 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752748AbaIHPVX (ORCPT ); Mon, 8 Sep 2014 11:21:23 -0400 Received: from wuerfel.localnet (HSI-KBW-134-3-133-35.hsi14.kabel-badenwuerttemberg.de [134.3.133.35]) by mrelayeu.kundenserver.de (node=mreue105) with ESMTP (Nemesis) id 0Lql1O-1Y52ap1Fgo-00eJAX; Mon, 08 Sep 2014 17:20:57 +0200 From: Arnd Bergmann To: Steve French Cc: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] cifs: remove dead code Date: Mon, 08 Sep 2014 17:20:56 +0200 Message-ID: <3319326.1eJrmz0Vgc@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V02:K0:AVBBbaIbRPcO1nlb10C8as/Jya4939kHshUzS0XTF9L wzvlq5SRpWMe43noeLIx01ZEHkYZTevDBaDBFLKqfpg26UhaWd CIz6KnAgL4RlllBlSK8eqxFyNnUbCRAtGmu0FkyB356fbpaNgw 3i8KtCWmM2jpkj8pikIzJPD/gnmWP16peu+jDSvghapjO+JgpC ghMXMvsCiw63nnTowmtQrw9PhlWK5lQvsuNlPG/LGUd8kgfPFj 18ts18Qr+6qC/qph0xjPqzgwNoOlwYRtpqccg4my87loyIi6LF qJ5OkLlVgpF5md9h3i5q5K0qrdGkv/T4FloeWjVUR99TtvSW2B 3FXH5jNzjwmofJ2r2Cdg= X-UI-Out-Filterresults: notjunk:1; Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Spam-Status: No, score=-9.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP cifs provides two dummy functions 'sess_auth_lanman' and 'sess_auth_kerberos' for the case in which the respective features are not defined. However, the caller is also under an #ifdef, so we just get warnings about unused code: fs/cifs/sess.c:1109:1: warning: 'sess_auth_kerberos' defined but not used [-Wunused-function] sess_auth_kerberos(struct sess_data *sess_data) Removing the dead functions gets rid of the warnings without any downsides that I can see. Signed-off-by: Arnd Bergmann --- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index 07fe97ac6b0c..ab0fda6e8e58 100644 --- a/fs/cifs/sess.c +++ b/fs/cifs/sess.c @@ -745,14 +745,6 @@ out: 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 @@ -1103,15 +1095,6 @@ out: 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 */ /*