From patchwork Tue Jun 27 15:06:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9812581 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EFD09603D7 for ; Tue, 27 Jun 2017 15:23:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5541427FB3 for ; Tue, 27 Jun 2017 15:23:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4981328506; Tue, 27 Jun 2017 15:23:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB5A827FB3 for ; Tue, 27 Jun 2017 15:23:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753019AbdF0PX2 (ORCPT ); Tue, 27 Jun 2017 11:23:28 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:50042 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751747AbdF0PX0 (ORCPT ); Tue, 27 Jun 2017 11:23:26 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPA (Nemesis) id 0MHtgv-1dTRlT3hMb-003aaI; Tue, 27 Jun 2017 17:23:11 +0200 From: Arnd Bergmann To: Steve French Cc: Shirish Pargaonkar , Pavel Shilovsky , Arnd Bergmann , Sachin Prabhu , Aurelien Aptel , linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org Subject: [PATCH] cifs: hide unused functions Date: Tue, 27 Jun 2017 17:06:13 +0200 Message-Id: <20170627152302.806239-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:LQzkK6I4l8sJWNZafnFm/uokBDfqUpElb9Sjn+Dx7EUPM+cy9kG HsZykCV6nGRjXOwK+naoKzGtboPgjdnNxmPai2RyhOdGjGNkOo8qESvWDWAN+AJwUGl14UP 4RtUFn8YtlvAWlLvRWqmd8hQo/KKESgjfKJkMx9TsECfhp0qSazKVgbod1LOJJauQ5EjqIc 4nF2ez5NfGWyFoeMd9pfg== X-UI-Out-Filterresults: notjunk:1; V01:K0:bhmTHJTE2DY=:I5DFPW1AY9Fl+GWQJvTJbc JFkjyRrOdPzkEnvAlHFjR9dzJ5/MgZ3QbaKt0veY2U0JK+nGXe2GY/9pwcqCGp1D1puqrU5fP LZufR2lKg2Bgiub/e2isGK8yOPcQ3PuiAePcOvpUPS/SK7zFOoJsZzB46YmFsdRGbKXEscbnH 0XwQxZZudGakjJBgnaVNusqNwmuTTwDSK/d+lndG+lEAYRgkckACBA6JUVJ95nJzTwpIiLF6A gmz5io/LRCOxb+Jnk6u/dW/MTIEs3LCIE9tCFCTuiEAFTefUbUhDzX3Ra7y6htS16/S7pqvE3 7+/mRcd/5Bj9Sbyvgz0kSFDYLtiIGy8UOR6dXhh/p8Z/uZFQiZa7C09d4NhZxUbyhxqBQLhTG 7NodOFY2eWAHuiTQd1cgetFTuCbdDvZVPyQqKaSTnlHIzOA9KTe79AG/W9g0rrm5W3NG1yXpW n88kMda5zm42L2fFZRBFYpcv5ZOSht3s4tB/1JOwgETZuIJCijJhDtmFxSHegVM1DfBnqhEeC lg+SgKWNQRl2HVwdyvrZ3AWfnIHOdRet6dRRqkKedTBJTkWF8XuuWOO9k+NLCZKxoHns9uQrY J1S0cquIxCZisTsvRE3+xsu+Zrclvc5h4IsJuH/yDVjiBZIaPu19bDXGzeypMR8pSikm+jna0 Bp0p5Qu7iyb7w724wJ7IpPnGxnbJovydzwIHBi0sAKWLRIAwrT5y+lCq5DsBIGolHdwQ= Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some functions are only referenced under an #ifdef, causing a harmless warning: fs/cifs/smb2ops.c:1374:1: error: 'get_smb2_acl' defined but not used [-Werror=unused-function] We could mark them __maybe_unused or add another #ifdef, I picked the second approach here. Fixes: b3fdda4d1e1b ("cifs: Use smb 2 - 3 and cifsacl mount options getacl functions") Signed-off-by: Arnd Bergmann --- fs/cifs/smb2ops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index 06494e11c570..941c40b7a870 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -1288,6 +1288,7 @@ smb2_query_symlink(const unsigned int xid, struct cifs_tcon *tcon, return rc; } +#ifdef CONFIG_CIFS_ACL static struct cifs_ntsd * get_smb2_acl_by_fid(struct cifs_sb_info *cifs_sb, const struct cifs_fid *cifsfid, u32 *pacllen) @@ -1387,7 +1388,7 @@ get_smb2_acl(struct cifs_sb_info *cifs_sb, cifsFileInfo_put(open_file); return pntsd; } - +#endif static long smb3_zero_range(struct file *file, struct cifs_tcon *tcon, loff_t offset, loff_t len, bool keep_size)