Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1451827ybb; Thu, 9 Apr 2020 02:22:12 -0700 (PDT) X-Google-Smtp-Source: APiQypIf+4IYb/urB/wd06aARBKIo9kXemHpvPPbD7C5Qx2AyT7wTSvswQ9U30PqCLSz8SXX5gmo X-Received: by 2002:a05:6830:1003:: with SMTP id a3mr9362968otp.128.1586424131959; Thu, 09 Apr 2020 02:22:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586424131; cv=none; d=google.com; s=arc-20160816; b=GurhLRUavctQ2L4McUzdpBkrM0yyxeC37LXyQ35vGuk9L/ZicGnJxsTrXnefaYl4RN AllUDQsWH7DxXEYzS9L/HvK5PN409vG9ELnG0MwlySYirPKbYRJK7bPnMj8GPGM7fc8k gJ8HKYkNx5Gm3GCPM4UlpQPBlUTyMCBBJz/+snQxRInUmg5c+pZZlS9uE2wEO0zjJAU/ 3HIfv1g5Me8yUN32qfUoH5zCxUwZ6R8oH6u5+lbiR/4FWKi5btIGCCV4S0r7ZSXY32/X KPdDrMzHtLKzqWCXQ8PetFLN/T5aYs/vHAU9wSFCU6j3UflYN4PX0CMvmGMafHPvgPmQ AAIw== 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=H7tIHBrqDGeK+WO3R/ID/f5p0tnpz8Cfgzg0GCJMp5fZuT7vsSOxZ5MJJx8RdMy1fx GhJea4eZOUWRQjNqsGI0iN3oAcEZmymAT/z9+Nx5jnggLiFCqsVyZbKSACJAdAx5LuOn dGysQCPJhuEweSboEWxlRsqm60sVCKqBLVhF4ADrKg/rWjQt1NM/JQefYuxXVloIdpoZ 8SANZ7c+K0pE0cXz1jfUb+gJPcASbiS4j+IKMyzIlBd5w41WTYmGcGE5WS73Y30Rrm8Q mTQE/56TAoFTzoXLGaXEFNAexzWRW2SQFNz9V6VTyVKWhMdDEi4OkHIZaPjOm9qaizBd ETug== 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 l11si3528885oop.3.2020.04.09.02.21.57; Thu, 09 Apr 2020 02:22:11 -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 S1726595AbgDIJVR (ORCPT + 99 others); Thu, 9 Apr 2020 05:21:17 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12704 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725828AbgDIJVR (ORCPT ); Thu, 9 Apr 2020 05:21:17 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 2D00AA03DCD767EA6773; Thu, 9 Apr 2020 17:21:08 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Apr 2020 17:20:59 +0800 From: Jason Yan To: , , , , , , , CC: Jason Yan Subject: [PATCH] EDAC, xgene: remove set but not used 'address' Date: Thu, 9 Apr 2020 17:19:33 +0800 Message-ID: <20200409091933.16347-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