From patchwork Tue Feb 20 11:55:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 128885 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4555048ljc; Tue, 20 Feb 2018 04:00:13 -0800 (PST) X-Google-Smtp-Source: AH8x225mpsXxrw7kSqqFp5EBGbRFKDH1xok3u5HnxplIyWDSmxwZQPNaX99GkvfR/okMC5ij+Xsf X-Received: by 2002:a17:902:aa87:: with SMTP id d7-v6mr10860705plr.237.1519128013806; Tue, 20 Feb 2018 04:00:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519128013; cv=none; d=google.com; s=arc-20160816; b=q7iCPm1DY0kr3v1xpkhxWvm0eDRLA7Y4KlCZ2F+kt9tOyO2gcLx2AR6bZKWwlDtlic WvTW5/I/7ep8wWwMvPSe0Ea6JHlWtZbbWGt7kpZAA0quMfANvkP03jaQwA+sr4SY5IVz LSNrWjAfzGLwQ1tIEoR3yDlpSW+vlPzSlWDrTe/Wa2bVd4kBmsB1OJW5ITYkMpa3FMkt nri6Mycfut8U48BQsP7W4J8kiK9g8ya2FDf+ZYAWVof25t0XQ9KM19DIxSZKFViyuwK/ ITbl8cR8BlZHkkqxTjD2gaeW2T0bB7taIyTiWQkRNAPpM45blODXjzP5X08XPXF5Dl/m YqOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=c6/JVI9PhrCZHdU5WmS9+nCrygsQ9kRFEVYVAW3urAg=; b=T9qlBlnS9xJ0DTXr3hnd08c6zIFAVlS51mK/nqtyBMpnHxAsYpF2fN3cRz33ikdO6J /U0Uwv6Y9Hdh9A3sZIxMnn0d37ovOfxfFFkw2rAkDoyuXxn/TKtUZNwt6skd3MPmukuN 8UigFzLC+xZUoaSNnfjSPVUVaeKxklLlt3XA8xTuT7dbJg/76mqewTbSjc8RfGyNBXPy TdtHZdhvwFfij+Us3R3VMdZ8tzyMHVlxif/aHtPUgaf2nUXRrof1CeuHVnkVxY6IrPVI 5coA5zZQaUXO0sa64Fdc+r/5RRPIVvR6pYup7Vo7ooEL3cBtdn+LYvq4Pwmbdoh7tXhV evow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c186si1504505pfb.305.2018.02.20.04.00.13; Tue, 20 Feb 2018 04:00:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751975AbeBTMAK (ORCPT + 28 others); Tue, 20 Feb 2018 07:00:10 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:44449 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751643AbeBTMAH (ORCPT ); Tue, 20 Feb 2018 07:00:07 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0MPGl6-1esWRM2aR6-004QPF; Tue, 20 Feb 2018 13:00:00 +0100 From: Arnd Bergmann To: stable@vger.kernel.org Cc: Greg KH , linux-kernel@vger.kernel.org, Miklos Szeredi , Arnd Bergmann , Petr Vandrovec Subject: [4.4-stable 20/22] ncpfs: fix unused variable warning Date: Tue, 20 Feb 2018 12:55:07 +0100 Message-Id: <20180220115527.1806578-21-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180220115527.1806578-1-arnd@arndb.de> References: <20180220115527.1806578-1-arnd@arndb.de> X-Provags-ID: V03:K0:bbYuVB2S+qrU85V94CfEFI8zD4MD28pQXW4ZMgrRb25k4vuexxf fvom2gUWMzSx4b0IVrHfFy4JoIydVxzCPwHYYWnLB4pB9AN9yLBE15oh3ZXtfEoFvOKyZGI YbNsd0/QZ/QqjnlC0isrZNZTZkjY7/Y5sMJnfg5K6l/uY5g8opA9GGawr0faNcJxFY5NiBD uNSSyl4bukkUYTe0BOfSg== X-UI-Out-Filterresults: notjunk:1; V01:K0:Kxz6P+lxgHg=:l5QX0ZO1ML6npbSlYr8RhF +NcUbSdqvgoZad5+n05En2gMNbD/gwhh9sIQPwinNKmjJCbBSeFTq8dLSj3EXae2GdkU8Zc94 Eo/GbwpDFrmLpUoIXNfakiAXmVmB4rFIMzyUeRZnTAceDTSKpyyDPrEJ06dRtNJ8d3Lab3HI8 HNxfcv+05CPXuvmrHauA1r6uH1MkzbETHZrXAVObK4Ni53DLUgyhU8w2MV+u5MSJWdANp4SCo bivAWpa+Kiv2SjOccJLrrP3gKD8k5BfbPAbjyBlqT4SeXwmACcTjasUMhnUXzIvNwnPiBAXmd VlNrkMSQJp6/mL2j/1fRcUd0gKqGLWuJfsqggrOZ7lMYLPwqkUoCBm/DBW+1Q8V5yimI/hoKw 48Br0m8OcFaeCFzqzbR67zTad+uRimZmzrtP5dSHKLR8k3x74meuOOUd9tPzt2htnJNDzkcrj M6FAYa0MtaiPbhMHhWZJDSh9TzScOPrjCPDxFiV20qbuEq1puFr4PLmh7TZPuBausIwTf2Jgz lxWWjskjqd6zBdXRvazLqMfe9y6BEM41RWMMx5rFnIC7n9afEy/p1dCz2gbz9cSmHV5sC5/bs T/UqIeDbX+sbY+kuNTxYIBNTc5FkvlAkQtqy3KGP9x1sl5XX7PU5uElPzwtGGUmm1bR3XQsN1 3tjVZJdpdaqrTD7zDbCKgCxaqgO1yY3w5kkINtwxSRBugW/XDVEQ4cnSanD+OQpr+sTpD2qTB NAVVvJo5rwyojRIsntEeFiO01yBPngheO2YUng== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Miklos Szeredi commit 9a232de4999666b2e8ea6775b2b0e3e4feb09b7a upstream. Without CONFIG_NCPFS_NLS the following warning is seen: fs/ncpfs/dir.c: In function 'ncp_hash_dentry': fs/ncpfs/dir.c:136:23: warning: unused variable 'sb' [-Wunused-variable] struct super_block *sb = dentry->d_sb; Signed-off-by: Miklos Szeredi [arnd: rebased to 4.4] Signed-off-by: Arnd Bergmann --- fs/ncpfs/dir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.9.0 diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c index 03446c5a3ec1..4e1144512522 100644 --- a/fs/ncpfs/dir.c +++ b/fs/ncpfs/dir.c @@ -133,12 +133,11 @@ ncp_hash_dentry(const struct dentry *dentry, struct qstr *this) return 0; if (!ncp_case_sensitive(inode)) { - struct super_block *sb = dentry->d_sb; struct nls_table *t; unsigned long hash; int i; - t = NCP_IO_TABLE(sb); + t = NCP_IO_TABLE(dentry->d_sb); hash = init_name_hash(); for (i=0; ilen ; i++) hash = partial_name_hash(ncp_tolower(t, this->name[i]),