Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp207803imm; Tue, 18 Sep 2018 20:08:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbA61aNz1gCqRiMv7jCkRfub6hV2keoRe5f2qa2mWBURyEWcYa+q0lQD/BCX3sa3VxZ9bUx X-Received: by 2002:a63:27c1:: with SMTP id n184-v6mr3205631pgn.278.1537326480900; Tue, 18 Sep 2018 20:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537326480; cv=none; d=google.com; s=arc-20160816; b=jeZArmYJ42oIfHzUfYJYylSeks/MsN+0nranHaCTEUOQTZmDwAlppx2jPdAgNGw1Z6 DTywVR6Ed85BGmmm6Y8GfIDejtW9Dek4vZur0i8sQ8zDdIuxSeWXAcULmS7RvTkt1Mwd XSoVqU+MuzhSXJRiz6E3Bv8kEO2OiyRTq+BFKUiNJ5TUH19X6L6UDrC4o3fhXuR0bvJo IzptgOTozTre4Y5EAjhgRcyyuIjEE7FslfBMCLXWBR9DyRff3GQMxNhDcUT07OIY5BlQ qxnFzEfewLV0bD5f7ZDrjq3mLkTF18eer90PLib0AcjtLgiofwkGO1xIIm8OGT92EG6r m52Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=1/bm2wuJsydnh+skoLXYl8LCn7660bI+d90DvukLIfY=; b=qB46x1PeC1GIdLrc2g+Gs95ieyLA4Rkf3nZ6Vjq9sE3UWShpDPfelsMh+GLcpP1amz FSnGmnMrfuKwgzS8Wxv7OX3UsLPh4hYWCiySU4TM4gQC/K9RNsBeLe1XznGotHWORyBp J8NW7uLJ1HVwO2/H8TVum26esleQLXY0vF5HgF2Zoa9rxYuDaL24bvn6QKKyqddJHu23 SOa0cOZf4U8bgDetS0+YUJnoMkCBSDC3BE5erIFkWDqzEBn6llPlsAssPZX4+XjUPiwk ErOSly8/LxQlqS/djre2Q0GsoAiOxS47RgLZPqHSFdnRm35rIpFpt22/Wh+Z2MIbpS1M cuBg== 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 x5-v6si19347288pgc.210.2018.09.18.20.07.45; Tue, 18 Sep 2018 20:08:00 -0700 (PDT) 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 S1729693AbeISInW (ORCPT + 99 others); Wed, 19 Sep 2018 04:43:22 -0400 Received: from mout.gmx.net ([212.227.15.18]:58707 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725846AbeISInW (ORCPT ); Wed, 19 Sep 2018 04:43:22 -0400 Received: from [192.168.175.55] ([218.18.229.179]) by mail.gmx.com (mrgmx003 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MexaL-1gQQfl30lF-00OYwF; Wed, 19 Sep 2018 05:07:25 +0200 Subject: Re: [PATCH] staging: erofs: Fix a unused variable 'arg' warning To: zhong jiang , gregkh@linuxfoundation.org Cc: gaoxiang25@huawei.com, yuchao0@huawei.com, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <1537323381-23839-1-git-send-email-zhongjiang@huawei.com> From: cgxu519 Message-ID: <5b3438ac-f4d4-7f66-4be0-1720c1eada98@gmx.com> Date: Wed, 19 Sep 2018 11:07:17 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1537323381-23839-1-git-send-email-zhongjiang@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Provags-ID: V03:K1:VXqopPZR7tHc+KY+6grLbeHlmxQcRunasrXUymGCCYN1d8JpfT7 AAfQfdlibflGsbtxPouCeDAJ3/Zeqn3ZEmz3crd6G1S7+u15J+Ydf7ONxaNDOw2eTH3j052 HokPNWlz6PXeO2J4ztzb704J+FxfRrGIoHo/eDezsQOyp8E+NeTQ5DFaKejTzSciVVdY2og W1qQ0g6g+B3snlPTf1fKQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:Dp+Zzxv3Tr4=:Uwk3liIWK26rnA3V0Hs/On 41mt+odEYzBINtgCcuHvkKCRutCEh2fVuM1REaJXAZ5g+VVq5iTb8u++Qv7WWw0AuDnF6NEPm CwLC7SyWoI+MAxlO3XaDbksopdc81SHAJkbLkgK576wrD4PG1K/+QAGPt+zIDpEn82ZSm3Ztv ve1+fk1TGEHgpTL7FCVz/rHZd78lCbXHfu7YYubZgkwufA/Np0LcpqaspXkZoFkxEAnzP432X ofhM6K5U4M3aZbdKLN8rDMStMlNoW9aYPfaepzvcKpHQzkokBjUgHB8zsnQBQfjtVd68ftOlw 5c+f1JGHAUE42S9viIo76nEYmQafsiH55fG09TWBE3/wFtDdVS8/OSfPjjES/HnNMEf/LP//i vbBRLrrdgCrtYgELqtpW8+zTI15HUAlCv2TAxOFlJMT1dyRmeaRcJADjjirWpaSoMjxPWCJ59 gv+plRfr56Uhd2JXWow6FwSW/D2bdq1LgZH03Fufp+wOgeCD9LOlmv8vr9FSMapV4/QxeQ+6p xJDRZupJiP9DSMb4rl9iOSusA7wnOczz34t5muzJM+JEw9JHEXgWLwGebRHntonSBBm6oARke cexXHplOoU+akaZ2AHrdFhX0B12uoA/acq8pbBE+OS7HoMky0avFYX9suo2aAblXnO6IdxtZE RX9SyAwGc4z/mJ96/ZuI5kykGlKKbRztvjeDOpcoPy8qkRR/dH+XWePLN0tIxJITQ2I1aMfy4 ruyq7V0Qk99pmVjZof9+y8hjWdtT8rl1Qf1Kblqs62Ne7HhXMIac+gidIRHOXLsYs/MHP5iJD dVMJIXmHzym/4oRqA67vib9heE9yRQfUEM0KRY3nSaqMeCGeV0= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/19/2018 10:16 AM, zhong jiang wrote: > I find the following warning when compiling the kernel. > > drivers/staging/erofs/super.c:195:6: warning: unused variable 'arg' [-Wunused-variable] > int arg = 0; > > Signed-off-by: zhong jiang > --- > drivers/staging/erofs/super.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/staging/erofs/super.c b/drivers/staging/erofs/super.c > index 6423592..c04313f 100644 > --- a/drivers/staging/erofs/super.c > +++ b/drivers/staging/erofs/super.c > @@ -192,7 +192,9 @@ static int parse_options(struct super_block *sb, char *options) > { > substring_t args[MAX_OPT_ARGS]; > char *p; > +#ifdef CONFIG_EROFS_FAULT_INJECTION > int arg = 0; > +#endif > > if (!options) > return 0; Hi, The fix has already included in my patch series "staging: erofs: option validation for remount and some code cleanups", so it will be fixed when the series merge into tree and we do not encourage surrounding the code with macro in option parsing for this case. Thanks, Chengguang