From patchwork Mon Sep 9 12:11:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13796960 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E6610ECE57E for ; Mon, 9 Sep 2024 12:45:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Y/cnjaaDoThpBld5cIzezGmKKBFojpCv7pw1PefwXV0=; b=Pk1k9w7pR1JNNaXK0hcinixTLn IrId1AYam5ZcBi5TaLY0AJLQGUbVqrffw4D2dMskXwtJgtFtR8wZ1hpyZKYXyiolObae4se2Dlipq cNS6laX34Y1o592Wiox0TxvlsC8yFa/V2B6lF26jgUQczWpDKx6PFQG8ezm1GgYqlIuykGl5Xoi7f P9/47CVXuIQJkldhaM/Y8Qg/fhErgqfnirXcbczUffhey/oa1UPTRlfhh4GtM6Cfuyh0/ktrV1xHb HcWbvl1hEkof7OjTrMalJPGoPDqqikRGV4UnDc6WDYL1q++z6jeFRIOrumMetFP7skFde/xJvfdU3 dFJ5a7+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sndlh-00000001sYu-3FZt; Mon, 09 Sep 2024 12:45:21 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snbMg-00000001STA-1Skd; Mon, 09 Sep 2024 10:11:23 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id F16255C5645; Mon, 9 Sep 2024 10:11:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94B21C4CEC5; Mon, 9 Sep 2024 10:11:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725876681; bh=vvlOf3FJ8E89u5XJBz4yvALF0Sbc3Vr4gQs/Ydqc08Y=; h=From:To:Cc:Subject:Date:From; b=OSHgrb4aOuuyefGW9wRDf5QC77+H/qhDFCoJQjzlZXZMpRqg3G9l8NNHyplKMjy8t Jcdnj5uGNcd3hmBrZzO3U2nzJQrnpA2v00FyvyqSHRs7KLxigckzIuOrPDfjEKR+B7 iM2KRWNwAGiOILId4ZKj9vPj21F2H8o1OIJMBWn4QUnQTgtGXxpqR+js+0bbEsWp+z Ko0JnY8VyLBLYRsQnQGfAgxGZKUOMuWoiMmeJ1LQW7WhHPEZNvrzmtjnuvUgcav+s8 j13mR/NPHFXnHd76Ii2gQeCjyepu81nrQsk6nO7nDw/FOYAHZn7csjAIwX1/QDYXIx WZHmHTYYCVNCg== From: Arnd Bergmann To: Michael Turquette , Stephen Boyd , Heiko Stuebner Cc: Arnd Bergmann , Elaine Zhang , YouMin Chen , Detlev Casanova , Sugar Zhang , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: rockchip: remove unused mclk_pdm0_p/pdm0_p definitions Date: Mon, 9 Sep 2024 12:11:05 +0000 Message-Id: <20240909121116.254036-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_031122_478535_5AEB357F X-CRM114-Status: GOOD ( 10.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann When -Wunused-const-variable is enabled (not the default), there is a warning about two definitions in this file: In file included from drivers/clk/rockchip/clk-rk3576.c:14: drivers/clk/rockchip/clk-rk3576.c:334:7: error: 'mclk_pdm0_p' defined but not used [-Werror=unused-const-variable=] 334 | PNAME(mclk_pdm0_p) = { "mclk_pdm0_src_top", "xin24m" }; | ^~~~~~~~~~~ drivers/clk/rockchip/clk.h:564:43: note: in definition of macro 'PNAME' 564 | #define PNAME(x) static const char *const x[] __initconst | ^ drivers/clk/rockchip/clk-rk3576.c:333:7: error: 'pdm0_p' defined but not used [-Werror=unused-const-variable=] 333 | PNAME(pdm0_p) = { "clk_pdm0_src_top", "xin24m" }; | ^~~~~~ drivers/clk/rockchip/clk.h:564:43: note: in definition of macro 'PNAME' 564 | #define PNAME(x) static const char *const x[] __initconst | ^ Remove them for the moment. If they are needed later, they can be added back at that point. Fixes: cc40f5baa91b ("clk: rockchip: Add clock controller for the RK3576") Signed-off-by: Arnd Bergmann --- drivers/clk/rockchip/clk-rk3576.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3576.c b/drivers/clk/rockchip/clk-rk3576.c index 4de05b208771..595e010341f7 100644 --- a/drivers/clk/rockchip/clk-rk3576.c +++ b/drivers/clk/rockchip/clk-rk3576.c @@ -330,8 +330,6 @@ PNAME(mclk_sai7_8ch_p) = { "mclk_sai7_8ch_src", "sai1_mclkin" }; PNAME(mclk_sai8_8ch_p) = { "mclk_sai8_8ch_src", "sai1_mclkin" }; PNAME(mclk_sai9_8ch_p) = { "mclk_sai9_8ch_src", "sai1_mclkin" }; PNAME(uart1_p) = { "clk_uart1_src_top", "xin24m" }; -PNAME(pdm0_p) = { "clk_pdm0_src_top", "xin24m" }; -PNAME(mclk_pdm0_p) = { "mclk_pdm0_src_top", "xin24m" }; PNAME(clk_gmac1_ptp_ref_src_p) = { "gpll", "cpll", "gmac1_ptp_refclk_in" }; PNAME(clk_gmac0_ptp_ref_src_p) = { "gpll", "cpll", "gmac0_ptp_refclk_in" }; PNAME(dclk_ebc_p) = { "gpll", "cpll", "vpll", "aupll", "lpll_dummy",