Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp631055ybz; Wed, 15 Apr 2020 15:31:24 -0700 (PDT) X-Google-Smtp-Source: APiQypLQeT2UsCpuDk68Klbl2p/1na3VC5uHHQTwBkRr0BAWzjVxEUE5Q1LCH7zosRfBfV8XIWwA X-Received: by 2002:aa7:c40b:: with SMTP id j11mr11753926edq.17.1586989884632; Wed, 15 Apr 2020 15:31:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586989884; cv=none; d=google.com; s=arc-20160816; b=mwLgcKRJN05L4Abl3aiYjo63NG9jn0P7MJOHIdSgoyuYlSc4mFGUj/ie8FkEDaL4mq srTrECAhsTdPluoxy2IQd3CL6HPztRsXD7pNC6C+17ryT+RtiVnK6LRycoo2qSQhKZ5D cfeyfd78Ie//f9lvNvTzY5LItVZBF0Y6drLLa9NCjTDPdASIhXwD17YqxAFatIxbs9ln 0Rg3bKyoSbxwVPl5otXuVk090VUvN74mknf2z55GuaWNWVkV096KQ1MOeOgOfidGVE6h MiRfaoC+ZiwC80+z5SogRlrSrZ50b3HpJSEDFqvzlLMZS+waStBwOth6GJKZGHoXEcrU dgCg== 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=7FyKiVISqryHGWlE33MGuhW2Ys3zXiq3CuCu4AG2eCw=; b=v25TOmTcq42Ve7978FtaLvpV8PtaOJV/47IAUZqdTebAvoF30EJqOPcOtNpjyJpaoq f91EHv76n161/7+rQzD3GhAdj2MreA8eFkhlI+Q8mp9i1MEAcMH7LEJqxi3CGe8QCBN2 U/G2CfDN70a9g9k124xg4VXN1T7XyxvlCgzxB2krG4EKS1Ah1zS5pHFQWvoG6ttrVIsl LwjyyWV0yr7ovmlW8jLCLuCzgxz1dHI0ZMBndJpRuqI7uHYP/f0vuBQpeAcLJifJfx4n cu+6nkBSA/hqxeY+vLLA6QjmNbFTI4BBDP6B1A0oadlx086/Dcs48v+fmzu22jhbc9nF nqlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi18si11634010edb.109.2020.04.15.15.31.01; Wed, 15 Apr 2020 15:31:24 -0700 (PDT) Received-SPF: pass (google.com: 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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2894411AbgDOIYB (ORCPT + 99 others); Wed, 15 Apr 2020 04:24:01 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2377 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2894407AbgDOIXx (ORCPT ); Wed, 15 Apr 2020 04:23:53 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 9DA2429C6DCD93E4EFC6; Wed, 15 Apr 2020 16:23:49 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Wed, 15 Apr 2020 16:23:38 +0800 From: Jason Yan To: , , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH] EDAC: remove defined but not used 'bridge_str' Date: Wed, 15 Apr 2020 16:50:06 +0800 Message-ID: <20200415085006.6732-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 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/amd8131_edac.c:47:21: warning: ‘bridge_str’ defined but not used [-Wunused-const-variable=] static char * const bridge_str[] = { ^~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/edac/amd8131_edac.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/edac/amd8131_edac.c b/drivers/edac/amd8131_edac.c index 93c82bc17493..169353710982 100644 --- a/drivers/edac/amd8131_edac.c +++ b/drivers/edac/amd8131_edac.c @@ -44,14 +44,6 @@ static void edac_pci_write_dword(struct pci_dev *dev, int reg, u32 val32) " PCI Access Write Error at 0x%x\n", reg); } -static char * const bridge_str[] = { - [NORTH_A] = "NORTH A", - [NORTH_B] = "NORTH B", - [SOUTH_A] = "SOUTH A", - [SOUTH_B] = "SOUTH B", - [NO_BRIDGE] = "NO BRIDGE", -}; - /* Support up to two AMD8131 chipsets on a platform */ static struct amd8131_dev_info amd8131_devices[] = { { -- 2.21.1