From patchwork Mon Apr 18 21:59:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 8875871 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BF4EF9F36E for ; Mon, 18 Apr 2016 22:00:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E91F52012D for ; Mon, 18 Apr 2016 22:00:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 00A422015A for ; Mon, 18 Apr 2016 22:00:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752019AbcDRWAC (ORCPT ); Mon, 18 Apr 2016 18:00:02 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:56498 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751451AbcDRWAA (ORCPT ); Mon, 18 Apr 2016 18:00:00 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue004) with ESMTPA (Nemesis) id 0M53xy-1bgN7W3obu-00zGTJ; Mon, 18 Apr 2016 23:59:45 +0200 From: Arnd Bergmann To: Jes Sorensen , Kalle Valo Cc: Arnd Bergmann , Jakub Sitnicki , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rtl8xxxu: hide unused tables Date: Mon, 18 Apr 2016 23:59:31 +0200 Message-Id: <1461016782-2640046-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:6E2Uf2Ypks5p2Ynh4ExZM1LX24QW0K3EXoJ73M6bDIwVyg+Dta5 UY5m4Um6fPwjm3lGUiUa9t6W4VCy49CjzISf/xPOddXZfZ4gSItEEt98sCM5ZszOQ6DMS0R AWiHSkIvSzu93TDX58bjJ7aEojjhKc01W7mXc5xF1yr2S5kkPLG5JzfhEcwHS0ICkrfNmtY 3UCfe+2E3OXMhTh1jGHfg== X-UI-Out-Filterresults: notjunk:1; V01:K0:0y/fTXd5EKc=:/HIUfhhgx8T545DONx8/fB ze3ckI6Kbx3riHBuSSDN1gYz8r9khvwylAwnaS83TJBg7iL4mNffBMb3c09QYHN+6snilzoy4 RTe/dNNaIN8bHQn0TICK2x8SDD3jM4Yw0LNcTP2oe6R5ryyv8Y5cwS0KcovYAWl9k6wZGd++s Rbq51bota7z4nFIDPQ57uFYWu9Kejl2I6aYonMShV7SB1JbvPJI/xfA22HD8INwnnaIiXfyT+ sdEh89t/oKzSaRPU9yDzhrXTkl81Ua0GsGuL6M/dFV1OcgPmdU3Sa+o4O7vFOzckJUqYBnbGr EV4jf4JGVP+7XLPxGjdZREXA82fuiW5HczxHNUhLQFFktArkGib5qvT70bqnuaInuT1CTkNkk 3uM4D9Hbe13pRcA0mqejWKYFw4XlJkYTlB46INQJ9SLk2oGTGDW/xtqeOHVoGO0FMQRWEwezW zC3YitYxQJfYpBZiMVGSM0Rc68wRCwEYldg0r9X9ioohUUHcKzjbHDu8TpZE8D2oLXz7dE/7T IMhZB8Keh9OOQE48VZk34fra+a+keu4eNbA/E9FZHmLU2ZrATgRSGTp5Lv3pe0xku8g6HWYQG rta/BlJ5jOrwO6a0ujfrv72PsqmOcqI9En3l23AuC8h4xtt/4EPe8JwMv/JcszsHaCQofK6b8 6m7crWBybOkhBNPk8gwSGdvwk8wJro5OifmNqiySfbHsh6vjroJ8C7w+CYmMfP+addVQ= Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The references to some arrays in the rtl8xxxu driver were moved inside of an #ifdef, but the symbols remain outside, resulting in build warnings: rtl8xxxu/rtl8xxxu.c:1506:33: error: 'rtl8188ru_radioa_1t_highpa_table' defined but not used rtl8xxxu/rtl8xxxu.c:1431:33: error: 'rtl8192cu_radioa_1t_init_table' defined but not used rtl8xxxu/rtl8xxxu.c:1407:33: error: 'rtl8192cu_radiob_2t_init_table' defined but not used rtl8xxxu/rtl8xxxu.c:1332:33: error: 'rtl8192cu_radioa_2t_init_table' defined but not used rtl8xxxu/rtl8xxxu.c:239:35: error: 'rtl8192c_power_base' defined but not used rtl8xxxu/rtl8xxxu.c:217:35: error: 'rtl8188r_power_base' defined but not used This adds an extra #ifdef around them to shut up the warnings. Signed-off-by: Arnd Bergmann Fixes: 2fc0b8e5a17d ("rtl8xxxu: Add TX power base values for gen1 parts") Fixes: 4062b8ffec36 ("rtl8xxxu: Move PHY RF init into device specific functions") --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c index 928ca56f751c..0ba84b5fe0d6 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c @@ -214,6 +214,7 @@ static struct rtl8xxxu_reg8val rtl8192e_mac_init_table[] = { {0xffff, 0xff}, }; +#ifdef CONFIG_RTL8XXXU_UNTESTED static struct rtl8xxxu_power_base rtl8188r_power_base = { .reg_0e00 = 0x06080808, .reg_0e04 = 0x00040406, @@ -257,6 +258,7 @@ static struct rtl8xxxu_power_base rtl8192c_power_base = { .reg_084c = 0x0b0c0d0e, .reg_0868 = 0x01030509, }; +#endif static struct rtl8xxxu_power_base rtl8723a_power_base = { .reg_0e00 = 0x0a0c0c0c, @@ -1329,6 +1331,7 @@ static struct rtl8xxxu_rfregval rtl8723bu_radioa_1t_init_table[] = { {0xff, 0xffffffff} }; +#ifdef CONFIG_RTL8XXXU_UNTESTED static struct rtl8xxxu_rfregval rtl8192cu_radioa_2t_init_table[] = { {0x00, 0x00030159}, {0x01, 0x00031284}, {0x02, 0x00098000}, {0x03, 0x00018c63}, @@ -1577,6 +1580,7 @@ static struct rtl8xxxu_rfregval rtl8188ru_radioa_1t_highpa_table[] = { {0x00, 0x00030159}, {0xff, 0xffffffff} }; +#endif static struct rtl8xxxu_rfregval rtl8192eu_radioa_init_table[] = { {0x7f, 0x00000082}, {0x81, 0x0003fc00},