From patchwork Fri Apr 17 07:35:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jason Yan X-Patchwork-Id: 11494291 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3749A6CA for ; Fri, 17 Apr 2020 07:09:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 15BA12083E for ; Fri, 17 Apr 2020 07:09:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="W79Y/k4s" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 15BA12083E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xvynPsZ2tiz6lLh1T0lxMjfNfDEFvWqwnjyWVn46Pb0=; b=W79Y/k4sAasFrT JJlSz/naIky5WeIHJ0p2oL5OoDdx2ET89wJFHc5ZHgOu4W/Z77t84repC09v8IFKlet1FV0zRfNe7 HBTLwamrzvXZ1cnNMKnkHA2qNJ+bbHkhMDaZRY9Tdee5K6M4IAuKT7JbadBv3KCfr83JknLKEmOVe H+ZL1coNq4JDwUS0zN4bzhNUS47T9yL+uXIzmuzF3JhLySi1TDvsTUfuJIEy8qvtEOgVBmfxfky7N I7tAai0ngC1LECliqQY8wVpgzunoaTt7suPyzOhCz97Rexj5X8R+duaAOMcHR4Zu1fkiVPfcILxdi Q3y6c/EcroRqH6CeGPTw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jPL7W-0003tJ-7A; Fri, 17 Apr 2020 07:09:02 +0000 Received: from szxga04-in.huawei.com ([45.249.212.190] helo=huawei.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jPL7O-0003lD-Ja for linux-arm-kernel@lists.infradead.org; Fri, 17 Apr 2020 07:08:56 +0000 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 2B8BD1AB94DE7EDF6FDF; Fri, 17 Apr 2020 15:08:52 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Fri, 17 Apr 2020 15:08:46 +0800 From: Jason Yan To: , , , , , Subject: [PATCH] pinctrl: nomadik: db8500: remove some unused symbols Date: Fri, 17 Apr 2020 15:35:12 +0800 Message-ID: <20200417073512.42350-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200417_000855_235973_BED1891B X-CRM114-Status: UNSURE ( 5.62 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [45.249.212.190 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hulk Robot Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Fix the following gcc warning: drivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c:899:20: warning: ‘sbag_groups’ defined but not used [-Wunused-const-variable=] DB8500_FUNC_GROUPS(sbag, "sbag_oc2_1", "sbag_oc4_1"); ^ drivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c:570:23: warning: ‘ipgpio6_c_2_pins’ defined but not used [-Wunused-const-variable=] static const unsigned ipgpio6_c_2_pins[] = { DB8500_PIN_G3 }; ^~~~~~~~~~~~~~~~ drivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c:472:23: warning: ‘mc1dir_a_1_pins’ defined but not used [-Wunused-const-variable=] static const unsigned mc1dir_a_1_pins[] = { DB8500_PIN_AH13, DB8500_PIN_AG12, ^~~~~~~~~~~~~~~ drivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c:453:23: warning: ‘modem_a_1_pins’ defined but not used [-Wunused-const-variable=] static const unsigned modem_a_1_pins[] = { DB8500_PIN_D22, DB8500_PIN_C23, ^~~~~~~~~~~~~~ drivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c:430:23: warning: ‘kpskaskb_a_1_pins’ defined but not used [-Wunused-const-variable=] static const unsigned kpskaskb_a_1_pins[] = { DB8500_PIN_D17, DB8500_PIN_D16 }; ^~~~~~~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c b/drivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c index b9246e0b4fe2..0bba16dadb45 100644 --- a/drivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c +++ b/drivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c @@ -427,7 +427,6 @@ static const unsigned lcd_d12_d23_a_1_pins[] = { DB8500_PIN_A3, DB8500_PIN_B6, DB8500_PIN_D6, DB8500_PIN_B7 }; static const unsigned kp_a_1_pins[] = { DB8500_PIN_D7, DB8500_PIN_E8, DB8500_PIN_D8, DB8500_PIN_D9 }; -static const unsigned kpskaskb_a_1_pins[] = { DB8500_PIN_D17, DB8500_PIN_D16 }; static const unsigned kp_a_2_pins[] = { DB8500_PIN_B17, DB8500_PIN_C16, DB8500_PIN_C19, DB8500_PIN_C17, DB8500_PIN_A18, DB8500_PIN_C18, DB8500_PIN_B19, DB8500_PIN_B20, @@ -449,9 +448,6 @@ static const unsigned i2c0_a_1_pins[] = { DB8500_PIN_C15, DB8500_PIN_B16 }; */ static const unsigned ipgpio0_a_1_pins[] = { DB8500_PIN_B14 }; static const unsigned ipgpio1_a_1_pins[] = { DB8500_PIN_C14 }; -/* Three modem pins named RF_PURn, MODEM_STATE and MODEM_PWREN */ -static const unsigned modem_a_1_pins[] = { DB8500_PIN_D22, DB8500_PIN_C23, - DB8500_PIN_D23 }; /* * This MSP cannot switch RX and TX, SCK in a separate group since this * seems to be optional. @@ -469,8 +465,6 @@ static const unsigned mc1_a_1_pins[] = { DB8500_PIN_AH16, DB8500_PIN_AG15, DB8500_PIN_AH15 }; static const unsigned mc1_a_2_pins[] = { DB8500_PIN_AH16, DB8500_PIN_AJ15, DB8500_PIN_AG14, DB8500_PIN_AF13, DB8500_PIN_AG13, DB8500_PIN_AH15 }; -static const unsigned mc1dir_a_1_pins[] = { DB8500_PIN_AH13, DB8500_PIN_AG12, - DB8500_PIN_AH12, DB8500_PIN_AH11 }; static const unsigned hsir_a_1_pins[] = { DB8500_PIN_AG10, DB8500_PIN_AH10, DB8500_PIN_AJ11 }; static const unsigned hsit_a_1_pins[] = { DB8500_PIN_AJ9, DB8500_PIN_AH9, @@ -567,7 +561,6 @@ static const unsigned u0_c_1_pins[] = { DB8500_PIN_AF2, DB8500_PIN_AE1, DB8500_PIN_AE2, DB8500_PIN_AG2 }; static const unsigned ipgpio4_c_1_pins[] = { DB8500_PIN_F3 }; static const unsigned ipgpio5_c_1_pins[] = { DB8500_PIN_F1 }; -static const unsigned ipgpio6_c_2_pins[] = { DB8500_PIN_G3 }; static const unsigned ipgpio7_c_1_pins[] = { DB8500_PIN_G2 }; static const unsigned smcleale_c_1_pins[] = { DB8500_PIN_E1, DB8500_PIN_E2 }; static const unsigned stmape_c_1_pins[] = { DB8500_PIN_G5, DB8500_PIN_G4, @@ -896,7 +889,6 @@ DB8500_FUNC_GROUPS(i2c3, "i2c3_c_1", "i2c3_c_2"); DB8500_FUNC_GROUPS(spi0, "spi0_c_1"); DB8500_FUNC_GROUPS(spi2, "spi2_oc1_1", "spi2_oc1_2"); DB8500_FUNC_GROUPS(remap, "remap0_oc1_1", "remap1_oc1_1"); -DB8500_FUNC_GROUPS(sbag, "sbag_oc2_1", "sbag_oc4_1"); DB8500_FUNC_GROUPS(ptm, "ptma9_oc1_1", "ptma9_oc2_1"); DB8500_FUNC_GROUPS(rf, "rf_oc1_1", "rf_oc1_2"); DB8500_FUNC_GROUPS(hx, "hxclk_oc1_1", "hxgpio_oc1_1");