Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4509619ybb; Tue, 14 Apr 2020 08:39:23 -0700 (PDT) X-Google-Smtp-Source: APiQypLF9q0ASPHbLkviF/rKu8DIZ7/6/uDBqP1fC+cc1FiAbW71j1zKlES+4wBeTleWBYfTlY7Y X-Received: by 2002:a50:d308:: with SMTP id g8mr20975936edh.88.1586878763756; Tue, 14 Apr 2020 08:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586878763; cv=none; d=google.com; s=arc-20160816; b=WkpZyaovpcWVwnhBS4167bWqcvaIqqIKu1pPvI6wFyODxPv1DcH9S1COPh1jvuCYzS 9E52HVJXEvfdWiL27BcYJgGjW29X8yCy7FQJ2KZymZpGv5QeD+c+7g5ykC64BMW6IBRF QZ9ETk/wAf7q49mR1M2o3uBkIQk9qhDN1E7ITM0wHZMaxJ2Y+x/A9MwHZtR1JQBpLWad tKk6PUMSBwfF5RgrwyeHT5S/K3cNPaYwz5uJN9h+4LxE9637c+i/9oL3z05UuyZfpyXt PTnv31vsNB37b1dxwutVAiEXVM/KUmLyskkEy8SyQBqsIkcxZj8iqvYy0Mduqk/PBMAC nIwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vP4PbFC2Ql0uKPjbBVGyLCqT4YXRCyjqKtYPNE0k1+U=; b=gEtDRMEX7zU6II1TdRvaAj5uQiLMUT5B1kqs/XDAOESONPoKbp5HVUVip+rPDXEwg4 awybJYep7s1dNSTNkNggfuqcapkk8FMbIechHriEIReoa8JElq2wp1wMSxTWnnaLD/kV RPOJKEcbLvXofOTeX4gmfZx3U7+LwdDZDNLLjN9So5Vst07l9zJsFxuxATCKlD+QJuFH qKL8WY3BdOYBefKt5WEB+2dMSuXl/N5XEpKXk8tj6rJPlWwTicFK2RAEM1qgibjT1OSz LemHasod5Ubn/eAMOGBPfGp2aS06+lY3iMr7XdA+19GmoukLp3yw/eR/XZHZm+Yab2hN khdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=kbzpx2bD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si8936934edl.85.2020.04.14.08.38.57; Tue, 14 Apr 2020 08:39:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=kbzpx2bD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502189AbgDNMrq (ORCPT + 99 others); Tue, 14 Apr 2020 08:47:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729455AbgDNMrj (ORCPT ); Tue, 14 Apr 2020 08:47:39 -0400 X-Greylist: delayed 72711 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 14 Apr 2020 05:47:39 PDT Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39173C061A0C for ; Tue, 14 Apr 2020 05:47:39 -0700 (PDT) Received: from zn.tnic (p200300EC2F0C1D0021F05AC4D60C335F.dip0.t-ipconnect.de [IPv6:2003:ec:2f0c:1d00:21f0:5ac4:d60c:335f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 8FF3E1EC0CDE; Tue, 14 Apr 2020 14:47:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1586868456; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vP4PbFC2Ql0uKPjbBVGyLCqT4YXRCyjqKtYPNE0k1+U=; b=kbzpx2bD9bU7020BOrk7rhM9RaEK4j4gkgGAAdw+xoI82QHY5EPcneTPrNsr67rtlQ0D8L ilzLeGKq2VM9IrLsqwjzmyqSHkpLC1eCPGhc1rt3fwcYMMrRk9o7TJiuXiuF6dTr57mIEE hSh31XhQW/1XV4liU2uL6zPiJAv9jV8= Date: Tue, 14 Apr 2020 14:47:31 +0200 From: Borislav Petkov To: Jason Yan Cc: khuong@os.amperecomputing.com, mchehab@kernel.org, tony.luck@intel.com, james.morse@arm.com, rrichter@marvell.com, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] EDAC, xgene: remove set but not used 'address' Message-ID: <20200414124731.GB31737@zn.tnic> References: <20200409093259.20069-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200409093259.20069-1-yanaijie@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 09, 2020 at 05:32:59PM +0800, 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; > ^~~~~~~ > And remove the unused macro RBERRADDR_RD after that. > > Reported-by: Hulk Robot > Signed-off-by: Jason Yan > --- > drivers/edac/xgene_edac.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/edac/xgene_edac.c b/drivers/edac/xgene_edac.c > index e4a1032ba0b5..1d2c27a00a4a 100644 > --- a/drivers/edac/xgene_edac.c > +++ b/drivers/edac/xgene_edac.c > @@ -1349,7 +1349,6 @@ static int xgene_edac_l3_remove(struct xgene_edac_dev_ctx *l3) > #define WORD_ALIGNED_ERR_MASK BIT(28) > #define PAGE_ACCESS_ERR_MASK BIT(27) > #define WRITE_ACCESS_MASK BIT(26) > -#define RBERRADDR_RD(src) ((src) & 0x03FFFFFF) > > static const char * const soc_mem_err_v1[] = { > "10GbE0", > @@ -1483,13 +1482,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); > if (reg & AGENT_OFFLINE_ERR_MASK) > dev_err(edac_dev->dev, > "IOB bus %s access to offline agent error\n", > -- Applied, thanks. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette