From patchwork Thu Oct 12 19:21:48 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: 13419681 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 AC7AECDB47E for ; Thu, 12 Oct 2023 19:22:27 +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=1C6vgMoPtz7UlRSHDBiKK+qnRUMLh0sQw3CM8GBRFEA=; b=i/NmHuSxwAELCa xKDRI2bbfNPhPsiomlS9d9adDSnoAoT3p9PoZYdvtfmPpYKXzr95yXBV7wmXe18MgbrMB5QnmFmLB H8jc5LWZ5y6rkb14QSSVuuhzy6gflXsGX8Ff7XcZxJuV/oHfmoTA5TD/BA+L/JfKoN/AXSGqL5kp6 9wiJoDlZG+V/p29Q6vGX4mD/uhIBZy6EMsVBKosNcmaSJbGt/cQe7vxNLTgnReGsJAVT4q849TBXG khN2LxBOD+6XD+U/QR3gFSZLNwZm9iI6NJIt/gqzgzsnUnQzajN43naCLKNA7EDDT+HU//TpktA3G IDMWeD0sJ8gkbcTrqyQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qr1Fz-001gPL-1q; Thu, 12 Oct 2023 19:22:03 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qr1Fw-001gOf-1D for linux-arm-kernel@lists.infradead.org; Thu, 12 Oct 2023 19:22:01 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 9733DB8269C; Thu, 12 Oct 2023 19:21:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACF8BC433C8; Thu, 12 Oct 2023 19:21:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697138517; bh=wmAcJHNXIbXS2mL72Nqv5JNfiEX38pTlqswII+cQDeI=; h=From:To:Cc:Subject:Date:From; b=Iz6QB+RKMbsnELvBdNMZG0SFsuTbIWHMTTnVZDSIalACMaPtvi879bZbZwXYfeMGo /XTjW8VC/5kZW2VoeS6Q+G8OWZza5GZpYBy/YZyQhV+CnclGYbjPuVEqax02ZmbhCh jhXvfznEk8pPvBGPs8FlqueqYX5RCi/ULIAv9qBF0+PP0jFPIkyfCu71xRTB2kipv+ 8dJNKcOZOTUzlmMiR6S8QWaiXq+iEfv5c/LFFYvqmXUDFQdgH5p85wwu+Ctk4rHcxk GkWrLd749DW7MQrHoLGYJZHLefVMcwvJAhUPBSSEzQxA6onub4ZRqF6G5Vc3SsXPS9 FRBGxkiIZuEgA== Received: (nullmailer pid 1546513 invoked by uid 1000); Thu, 12 Oct 2023 19:21:55 -0000 From: Rob Herring To: Moritz Fischer , Wu Hao , Xu Yilun , Tom Rix , Michal Simek Cc: kernel test robot , linux-fpga@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] fpga: xilinx-pr-decoupler: Fix unused xlnx_pr_decoupler_of_match warning for !CONFIG_OF Date: Thu, 12 Oct 2023 14:21:48 -0500 Message-ID: <20231012192149.1546368-1-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-20231012_122200_567079_ED228A48 X-CRM114-Status: GOOD ( 12.63 ) 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 8c966aadcc02 ("fpga: Use device_get_match_data()") dropped the unconditional use of xlnx_pr_decoupler_of_match resulting in this warning: drivers/fpga/xilinx-pr-decoupler.c:94:34: warning: unused variable 'xlnx_pr_decoupler_of_match' [-Wunused-const-variable] The fix is to drop of_match_ptr() which is not necessary because DT is always used for this driver. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202310100247.Y7BFcalX-lkp@intel.com/ Signed-off-by: Rob Herring --- drivers/fpga/xilinx-pr-decoupler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fpga/xilinx-pr-decoupler.c b/drivers/fpga/xilinx-pr-decoupler.c index 0c012d0f616d..68835896f180 100644 --- a/drivers/fpga/xilinx-pr-decoupler.c +++ b/drivers/fpga/xilinx-pr-decoupler.c @@ -167,7 +167,7 @@ static struct platform_driver xlnx_pr_decoupler_driver = { .remove = xlnx_pr_decoupler_remove, .driver = { .name = "xlnx_pr_decoupler", - .of_match_table = of_match_ptr(xlnx_pr_decoupler_of_match), + .of_match_table = xlnx_pr_decoupler_of_match, }, };