Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1397451pxk; Thu, 10 Sep 2020 14:23:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoDoWbb1mDPJqB0/TLmkHQK1cfVwUrIVhMJHxM2O3sdP/4ubTVtkD3JkIQMLTlhTIx4/wk X-Received: by 2002:a17:906:7e42:: with SMTP id z2mr10672643ejr.206.1599773017200; Thu, 10 Sep 2020 14:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599773017; cv=none; d=google.com; s=arc-20160816; b=w5lszM/xD+5HXfd+PdlxBG3wsH9CC6QOjkS0c4pbbP3yIy6QuWew3fjYU/osT+IJJK 6N+Zx4o6xkJHd+yse10g2Uo6yC6SnZST8Tw8y3gCEL+kOl8gIPmWqLtK0A2ekMHO2zbA XUMeE0ILRfhHTD9U5n8s9atOv+VGDMlr0rhyf+OrbM04603nYvg1Mwyt75KNXg24rFqz Uz77+PfRl7LP/8IuBkqFp8GoYVm4uuBj5NIQNCcBA3mve5ynLbSRzfgK8dVqnBvPrvKB UnXHot3etRBN0rclDoTI7YvK6y0ujnnbHGmOSTeGPnmHCvVb1hVSaYQ5k924BP6MoWiZ tp1w== 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=Of2MHNMuqgNbjYK4+jTk+V8WcE2Shqox9NlEr/fzhd8=; b=Hlt9sWZPe50/MPDieAmRYIoi5vDBqXkTN9AEC9nnFuG9HccY/x4kREUyfTGvxxxtIC QCWmPF4uU0GIvbtzKEeSgvpmJsoHnBeSWbnpipLg9T074Vp50t+lZONAJ4/5Vg+QPj6L g9md/n2MCtL44DzAmP1fC6Hb00igTy+2gy8sGdTpwkYM18cDjlqENR/20L+YvRjd0vhY utnhjnsFoJhdsHgp33eT9uYC68J7nsoiAYK6wcXAg1iWUsPMSxSkBRHzk9VBSblVxfTU t3Xvtos/Ut4pVWkeM4V5jb5lYe+RTYlIuUtLkxH4bLwReeOaR5a4qEokVVFOm63G2T2Y w1hQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 cq27si4391123edb.415.2020.09.10.14.23.11; Thu, 10 Sep 2020 14:23:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727857AbgIJVUO (ORCPT + 99 others); Thu, 10 Sep 2020 17:20:14 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:11796 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731118AbgIJO0C (ORCPT ); Thu, 10 Sep 2020 10:26:02 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 985C9E1D2419A1DEE8BB; Thu, 10 Sep 2020 22:05:42 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Thu, 10 Sep 2020 22:05:33 +0800 From: Jason Yan To: , , , , , , , , , , , , , , CC: Hulk Robot Subject: [PATCH] brcmsmac: phy_lcn: Eliminate defined but not used 'lcnphy_rx_iqcomp_table_rev0' Date: Thu, 10 Sep 2020 22:04:55 +0800 Message-ID: <20200910140455.1168174-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This addresses the following gcc warning with "make W=1": drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c:361:25: warning: ‘lcnphy_rx_iqcomp_table_rev0’ defined but not used [-Wunused-const-variable=] 361 | struct lcnphy_rx_iqcomp lcnphy_rx_iqcomp_table_rev0[] = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- .../broadcom/brcm80211/brcmsmac/phy/phy_lcn.c | 55 ------------------- 1 file changed, 55 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c index b8193c99e864..7071b63042cd 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c @@ -357,61 +357,6 @@ u16 rxiq_cal_rf_reg[11] = { RADIO_2064_REG12A, }; -static const -struct lcnphy_rx_iqcomp lcnphy_rx_iqcomp_table_rev0[] = { - {1, 0, 0}, - {2, 0, 0}, - {3, 0, 0}, - {4, 0, 0}, - {5, 0, 0}, - {6, 0, 0}, - {7, 0, 0}, - {8, 0, 0}, - {9, 0, 0}, - {10, 0, 0}, - {11, 0, 0}, - {12, 0, 0}, - {13, 0, 0}, - {14, 0, 0}, - {34, 0, 0}, - {38, 0, 0}, - {42, 0, 0}, - {46, 0, 0}, - {36, 0, 0}, - {40, 0, 0}, - {44, 0, 0}, - {48, 0, 0}, - {52, 0, 0}, - {56, 0, 0}, - {60, 0, 0}, - {64, 0, 0}, - {100, 0, 0}, - {104, 0, 0}, - {108, 0, 0}, - {112, 0, 0}, - {116, 0, 0}, - {120, 0, 0}, - {124, 0, 0}, - {128, 0, 0}, - {132, 0, 0}, - {136, 0, 0}, - {140, 0, 0}, - {149, 0, 0}, - {153, 0, 0}, - {157, 0, 0}, - {161, 0, 0}, - {165, 0, 0}, - {184, 0, 0}, - {188, 0, 0}, - {192, 0, 0}, - {196, 0, 0}, - {200, 0, 0}, - {204, 0, 0}, - {208, 0, 0}, - {212, 0, 0}, - {216, 0, 0}, -}; - static const u32 lcnphy_23bitgaincode_table[] = { 0x200100, 0x200200, -- 2.25.4