From patchwork Mon Oct 30 14:23:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13440647 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 D793DC4167D for ; Mon, 30 Oct 2023 14:25:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :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=uK86oPgB2j9WFAUQOXYkDuYETmaXtV5FXh9L9lUlydY=; b=1e4XFADUzp9jch Ub7MV86akOc+8aIdxRZz+7Y3SsqSbtA/bnkmtshFN4kCBDx0c0y2IRkalWVVul9U4pGpDP8U/V7dn 7RPLplImBuhUbvNQ2rXkdJAoqBxvVH9VuLrvP9JyCEoJOIIjpDGOXsGA0JZ86SP26Xyq45MBo7mg1 R4CpU43IBJFI03P745WhTtYb5hi142NG5Zl1VkmTHFPp3XIeBerfuAET+2Ara17O0jKDMrc332WjX 117t1vP4dvcNRIALD2dedQVBnkJFaH6n4rCwNjLDxM5j1cHcYZhI5jlkq+1Enxc/IU4a5w+C978Mp viE+RA8hUVXafd886AAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qxTCF-003TfE-0B; Mon, 30 Oct 2023 14:24:51 +0000 Received: from mail-oa1-f45.google.com ([209.85.160.45]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qxTCB-003TeZ-0e; Mon, 30 Oct 2023 14:24:48 +0000 Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-1e9ac336589so3082694fac.1; Mon, 30 Oct 2023 07:24:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698675885; x=1699280685; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KURySP8CPvB4/y1EF5BKpqCgD6RX//UEPazzHu4/yag=; b=cuZHRCGAmvZs41wPLLkMyCGCBUIip0iBbuXUPAoqTftG9w59dsiwyJ9qriPCBiMLR0 1LlHQbBOtDPMrvFPehL3YYPChizgMBRGCjlZFBVIG0fiGvm25kZYR85xPQbcsm8iEx9q fBBg+6L1c7Y4GWKuEu+qG1lD77DsCR3j12e1RMj6lFnBV2BtkmWeL4JXPTk0UlL160JN +Cg1+sjygucMjPi6Fhh0tO3M2/94yc8FoAIokU7fK3C1HfDYzSB9Mx4y98R2zUJno+GW /7vquzPtahmtJfbg9jv/3cMD1NIeWrJHodQzw3AOBPX4yGOQmV29dn+Ys2cz/OElssTb YQaA== X-Gm-Message-State: AOJu0YwmizbSgUZDDb4/ftALX/mOKjCgrYOPE0lHpUfJIRH7fKLn7t6C ZrJfrsGX6ESHGCoTGB038w== X-Google-Smtp-Source: AGHT+IG976VSsNVNGrcLtXF9kn5Tt4rIHb5nwu/RGtnSoO1PHC/WESbhx3GE6OQSIrDTedgOFiLmLA== X-Received: by 2002:a05:6870:1382:b0:1e9:f09d:3736 with SMTP id 2-20020a056870138200b001e9f09d3736mr9855710oas.45.1698675884893; Mon, 30 Oct 2023 07:24:44 -0700 (PDT) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id s16-20020a05683004d000b006b8af3a2599sm1413313otd.73.2023.10.30.07.24.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 07:24:44 -0700 (PDT) Received: (nullmailer pid 816585 invoked by uid 1000); Mon, 30 Oct 2023 14:24:42 -0000 From: Rob Herring To: Nicolas Frattaroli , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Heiko Stuebner Cc: kernel test robot , linux-rockchip@lists.infradead.org, linux-sound@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] ASoC: rockchip: Fix unused rockchip_i2s_tdm_match warning for !CONFIG_OF Date: Mon, 30 Oct 2023 09:23:38 -0500 Message-ID: <20231030142337.814907-2-robh@kernel.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231030_072447_236326_1B56C6E9 X-CRM114-Status: GOOD ( 14.34 ) 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 Commit 9958d85968ed ("ASoC: Use device_get_match_data()") dropped the unconditional use of rockchip_i2s_tdm_match resulting in this warning: sound/soc/rockchip/rockchip_i2s_tdm.c:1315:34: warning: 'rockchip_i2s_tdm_match' defined but not used [-Wunused-const-variable=] The fix is to drop of_match_ptr() which is not necessary because DT is always used for this driver. Fixes: 9958d85968ed ("ASoC: Use device_get_match_data()") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202310121802.CDAGVdF2-lkp@intel.com/ Signed-off-by: Rob Herring --- Mark, another one that probably didn't get sent to you... sound/soc/rockchip/rockchip_i2s_tdm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/rockchip/rockchip_i2s_tdm.c b/sound/soc/rockchip/rockchip_i2s_tdm.c index 5c51dbef6e86..860e66ec85e8 100644 --- a/sound/soc/rockchip/rockchip_i2s_tdm.c +++ b/sound/soc/rockchip/rockchip_i2s_tdm.c @@ -1757,7 +1757,7 @@ static struct platform_driver rockchip_i2s_tdm_driver = { .remove_new = rockchip_i2s_tdm_remove, .driver = { .name = DRV_NAME, - .of_match_table = of_match_ptr(rockchip_i2s_tdm_match), + .of_match_table = rockchip_i2s_tdm_match, .pm = &rockchip_i2s_tdm_pm_ops, }, };