Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1448563ybb; Thu, 9 Apr 2020 02:17:45 -0700 (PDT) X-Google-Smtp-Source: APiQypLTwD/86cfkT2BAIrnFeaWgKRlC7cfflv6OPE3TIDAblj0jEGRPHOXI4scjC9sU2nvGUSmN X-Received: by 2002:a9d:69ca:: with SMTP id v10mr8551552oto.64.1586423865443; Thu, 09 Apr 2020 02:17:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586423865; cv=none; d=google.com; s=arc-20160816; b=oyJU+QAaq8h7rHiYhc16jo+UubJ56Xc9EXT3KSZVEm7F2AyggDnyLXt9lhLLme4c1O tBOfoGOyer9//6GaiSMcgKaQj0YBMGFzAxot1NLSklej9NLGFjrMkGwdsMVL9bBfr86/ loNmqMj0cDEOU4JYFfQR3HGAj+Z3VLiN9r33dfrrZCU+mVhyyQhWjqP1FWcQephagkdp ywfSNUXR+pInHWkRJOoJsUaCBmPfJOHSIySbKi2N1PC0wm+6wFJvnanUncmZS2jpNzjk uPf8CHdw/ra3HL/ebTW8pNI75Hc7yQaCsghjIARdCc7+g8BW5voL/rPuY9cVZQ8vpTJo FThg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=4v0iAdh5gIr00or4mPCYkqkjwJN0fTNmRYVVb5PVQvQ=; b=YiXi910ARhRcnirT//FG984MkC5R5Eg2vgOetZ0ZTWrEzsKLoeRxo4GfKsrBiqQYFO WMeo/6Cg0hqtJR1zyT2Ab58ZPUPJMze4fv5fxpaLG9zjsLDRGeiFpg0e1CMfJTFMDx/l y3HVExZGItgIFMlp5IL9VOtuzuowKe+S1h8dYymgDhBy+EsAO7i0pBU55+GoqCrV8Klb BMBptBT455o8Au7zeBQdVx4HGS6ffxkgpT3y2joW6aNr0dfBBDtdwE9I4bSyCdZ1UX88 bfGbA4fbDlGSLMBQnj1ZmCrp+COlDuKY1CsMjnLcZWKF3bgtUi744V1Uao9h7hN7Xv2M 1FEg== 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 q15si770528ota.154.2020.04.09.02.17.31; Thu, 09 Apr 2020 02:17:45 -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 S1726641AbgDIJP7 (ORCPT + 99 others); Thu, 9 Apr 2020 05:15:59 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59188 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725783AbgDIJP7 (ORCPT ); Thu, 9 Apr 2020 05:15:59 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 8A1E04C48F3BE4C6B697; Thu, 9 Apr 2020 17:15:55 +0800 (CST) Received: from [127.0.0.1] (10.173.221.195) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Apr 2020 17:15:53 +0800 Subject: Re: [PATCH] EDAC, xgene: remove set but not used 'address' To: Robert Richter CC: , , , , , , References: <20200409085237.46642-1-yanaijie@huawei.com> <20200409091016.d3uohmt2o3zwhmro@rric.localdomain> From: Jason Yan Message-ID: <1185c697-026d-74c9-3f67-e95bebdc4c00@huawei.com> Date: Thu, 9 Apr 2020 17:15:52 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <20200409091016.d3uohmt2o3zwhmro@rric.localdomain> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.173.221.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020/4/9 17:10, Robert Richter 写道: > On 09.04.20 16:52:37, Jason Yan wrote: >> Fix the following gcc warning: >> >> drivers/edac/xgene_edac.c:1486:7: warning: variable ‘address’ set but >> not used [-Wunused-but-set-variable] >> u32 address; >> ^~~~~~~ >> >> Reported-by: Hulk Robot >> Signed-off-by: Jason Yan >> --- >> drivers/edac/xgene_edac.c | 2 -- >> 1 file changed, 2 deletions(-) >> >> diff --git a/drivers/edac/xgene_edac.c b/drivers/edac/xgene_edac.c >> index e4a1032ba0b5..e5e0fbdeca29 100644 >> --- a/drivers/edac/xgene_edac.c >> +++ b/drivers/edac/xgene_edac.c >> @@ -1483,13 +1483,11 @@ static void xgene_edac_rb_report(struct edac_device_ctl_info *edac_dev) >> return; >> if (reg & STICKYERR_MASK) { >> bool write; >> - u32 address; >> >> dev_err(edac_dev->dev, "IOB bus access error(s)\n"); >> if (regmap_read(ctx->edac->rb_map, RBEIR, ®)) >> return; >> write = reg & WRITE_ACCESS_MASK ? 1 : 0; >> - address = RBERRADDR_RD(reg); > > Please also remove that unused macro. > OK, thanks. Jason > Thanks, > > -Robert > >> if (reg & AGENT_OFFLINE_ERR_MASK) >> dev_err(edac_dev->dev, >> "IOB bus %s access to offline agent error\n", >> -- >> 2.17.2 >> >