From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933186AbcH2MVm (ORCPT ); Mon, 29 Aug 2016 08:21:42 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:52411 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932870AbcH2MVj (ORCPT ); Mon, 29 Aug 2016 08:21:39 -0400 From: Arnd Bergmann To: Oleg Drokin , Andreas Dilger , James Simmons Cc: Mel Gorman , Arnd Bergmann , Greg Kroah-Hartman , "John L. Hammond" , lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] staging: lustre: hide unused variable Date: Mon, 29 Aug 2016 14:20:01 +0200 Message-Id: <20160829122023.3018966-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160829122023.3018966-1-arnd@arndb.de> References: <20160829122023.3018966-1-arnd@arndb.de> X-Provags-ID: V03:K0:14BI6w+wqV1o9CrKxx+mSJaf13HUGYfhIVc3t5AG5+50fQ5pvrU pCf235BMYiiwV2x2Lnm1kzkCDViDgqV77K7v4xw4KfOCO2uGHs5ApgDPJAD1XOsw1XDT/sH h9cHi1qo2CFeOoAeF3otZ5gXguvdmV3KAp16cgvxmXvj4Jj1ZIDnrXUkjwgmUhh0v8ldWpI PUJ6RfSWh1r6vrJ7UVV6w== X-UI-Out-Filterresults: notjunk:1;V01:K0:vv1EfJ2gXSw=:sKr5+rb010hWX5hKDGEMLZ Cn6SNNUeyjiFnxSqEZmaGpOzW7C/BonzZ2lJKsMD6QmvnctCammfvcmMnn4yt4r35UigbnFrt b+mh4XbEqN5r+SD/4cIF98VkAWxTjISdWnr8q1Xo7bPfezKT0cKkm6I9rxoLx9/n4IhivIod8 QVK1Fotkx3qGqXrPxfbmYrdb1BTJUMD2I95dhbOz4zdFLh5hCeGXj5AKiSsfIgIqwO48vRLYr qmzegZm3Z2MYzOcCF0+MC1Wh3O9+8uH/kiMlJt967UPGuHFiWufxOvNuLDp4OvMjCDcXTM1Cj Ci/Y89zsxWO9I9uFmgUs858QnGPo8EYDWMVRWTXCwb8PbQpVVzCi5Mj9X67j8Yu2Nd0AUyc+C o30zkq0Ilv2flhUFUi6vilUhN5tgZeTijRiud11YpwbB54XTCpyU8NOKiiA9wO1dMq9iw9vU3 x90pENR8/h0xFG/EuwPfsOtB9feRfDsK95PrtvSLeJPYV6akboaHdexPJE/5fFYRL2xRfTONi ptZdEx4bfXYjBX6gqGhGamNwKnAW6wkgBauUdIb20qDxXvTW9R+ERSGfYRhMv/7EtAR7xtiXS nySmZGOn7v2bNaTS0C/nK9ePn5SuNsn5gwf/cMk+SPU0mD169El5ko8+83c81y6qbqEpE1e6u GuAu8Y0MzF3v6NO3YuYT+y5wXfCukzvcBLHF/13vrxO751j+tFwrdV7N+UobKytLWfvs= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After a code cleanup, we get a harmless warning about a variable that is unused when CONFIG_FS_POSIX_ACL is disabled: drivers/staging/lustre/lustre/llite/xattr.c: In function 'll_xattr_get_common': drivers/staging/lustre/lustre/llite/xattr.c:312:24: error: unused variable 'lli' [-Werror=unused-variable] This puts the variable declaration into the same #ifdef. Signed-off-by: Arnd Bergmann Fixes: 1e1f9ff406fd ("staging: lustre: llite: break ll_getxattr_common into 2 functions") --- drivers/staging/lustre/lustre/llite/xattr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/lustre/lustre/llite/xattr.c b/drivers/staging/lustre/lustre/llite/xattr.c index f252c26ec30f..7b8d4699a71a 100644 --- a/drivers/staging/lustre/lustre/llite/xattr.c +++ b/drivers/staging/lustre/lustre/llite/xattr.c @@ -309,7 +309,9 @@ static int ll_xattr_get_common(const struct xattr_handler *handler, { char fullname[strlen(handler->prefix) + strlen(name) + 1]; struct ll_sb_info *sbi = ll_i2sbi(inode); +#ifdef CONFIG_FS_POSIX_ACL struct ll_inode_info *lli = ll_i2info(inode); +#endif int rc; CDEBUG(D_VFSTRACE, "VFS Op:inode="DFID"(%p)\n", -- 2.9.0