Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1462570ybb; Thu, 9 Apr 2020 02:37:16 -0700 (PDT) X-Google-Smtp-Source: APiQypIdk9le8ZW+O3+TyZhvu6kpq00SL+NB8m9ImIeDeV44IzD30PHSywrAUiZ+jrD9maffsDw8 X-Received: by 2002:a4a:e78b:: with SMTP id x11mr3082239oov.45.1586425035602; Thu, 09 Apr 2020 02:37:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586425035; cv=none; d=google.com; s=arc-20160816; b=I52UrDYDKA5j2+jh0FnRs6pERRzoUYUAHv1p+hR17jm+EO0ZzLzYqwa6arnM1nQA4a VETuwDW8DB0vYPDj5tB9b3Ew3BJJ7sD5ptRYY4A7V7/OIBV3cssT1Qw8rgOqeOyrLl6I dk7w7H34FdvCO8pyekKfFuVuDEz0gsXhsI+Dia4M0u7ZS1xm5LzTpM/xf9ItIzvx5e4u x8cXQD+YprycC/10wZYWXqHkYQZHx4u5IND2foe4zCoyUSwYxxu5s8zr+S5pxJepsJ2L LZTqPQDXpzxHUJ3rfXufzhJRqZzMy6IqgQ9hB41nHNbfA2USuD5jzFOup2pi4I/0+hwb pA6Q== 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:mime-version :message-id:date:subject:cc:to:from; bh=Lg9gBTOGv3kyd725EGD+ef/edqv2u1Q9Fnb4RL0Op0k=; b=xE6v9ecFcJJtxpgZVqjlybk5ShmRtLF09B7Hqtid5fA18o15iG7SLzXlRVCx436jYf 8rzqbSx+ZPvOFlO7uZZVH9qhzRaoQCz9o0JUwaZuy49driIjR/mDgCa2b2xy2YsT8Ufk j24J4WCrbMg25Xk9MaURvcujEVtB4bNM9Nm0zDQD3f6H0QYvBiqVVlRiAzXQpvWxFzde 3tUz0uZq8xOSWGjOjMP59iber+qFP2/r+IJMB/172476jxcYcJK4oQNWsvTwSIepNMj7 TwCcDDvhaZ0uqV5z+p7atpBn7I6+y+2dsWcoOzneIjBT0EnsasRqRnG5+jB4iqkTemCk GWng== 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 n9si1422479otr.238.2020.04.09.02.37.02; Thu, 09 Apr 2020 02:37:15 -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 S1726718AbgDIJew (ORCPT + 99 others); Thu, 9 Apr 2020 05:34:52 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:52750 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726571AbgDIJew (ORCPT ); Thu, 9 Apr 2020 05:34:52 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 3AF08A7135E5C9A07FE2; Thu, 9 Apr 2020 17:34:36 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Apr 2020 17:34:26 +0800 From: Jason Yan To: , , , , , , , CC: Jason Yan Subject: [PATCH v2] EDAC, xgene: remove set but not used 'address' Date: Thu, 9 Apr 2020 17:32:59 +0800 Message-ID: <20200409093259.20069-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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", -- 2.17.2