Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp521768rdg; Thu, 12 Oct 2023 12:22:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGa7vQXSQ0GKyjb6Rs1JNXRLJcwH6BuGpNYmXbql5lwh5uX4aBlGHPw2SEX/bUMZiQfYoq7 X-Received: by 2002:a05:6a20:a11f:b0:15d:d250:d240 with SMTP id q31-20020a056a20a11f00b0015dd250d240mr26647081pzk.50.1697138531320; Thu, 12 Oct 2023 12:22:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697138531; cv=none; d=google.com; s=arc-20160816; b=RHGpM8ueH3+iHhfWaugLq/cdzsnSr8I5asERjC0HmsccrgEVxBcrDThiUykleZOle1 VStxL1P3H4MjnFd841P5u5CpWnjpDEGWfOOZhkLUFq0MnL7lg8rQQXRNXcixWoANbTAx I70vPxCJ4R+M0/jDLZrrV3DGH/Jlxze6+LQ9FWmxglRO5zZ0ubAXe9TO3JwIQ7ldABv+ Bgdu6e1LMl3Pcd8WXvYV2XJLcqDuq9PjsdMP8bnATQUD/QWCh1Vxke4U37ise124Fkxj iX650gY8yTaYmM1gtOx2N2U2bSMzyFrySFptiDAJOc0DWjUfCWvWGdXgUw1jfEaM+3t9 TBug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=YifRZNU+dv3M7euSgUX2HbiR3CE8mYzoIwd8RDs3fe8=; fh=PmlCcTfwKQRuiGNF2gCFlHbKk98/p0IPwO0Lrw+ZhG0=; b=mni8FkZRz061bJ0lag5KjtE9u5X4/SY5uWYdjJFu06AZPKhHo1jo+WwLHE3KGqhRW9 Wt2Wyr9AAC/nC4Gqwb5mAAxYwdb2mA315OeiGB5TLuxXAu5X4CqP5GmhmUCKkZJ9+81+ 6xLQNjjgi6S1YCyFUPj4Ps9zqsA3gOXc3iXiXfZMMkHR8GtQ0/mGpC85zarW606zfEH6 5Bt8UercHSpNV87SDPjFvgGRjcdR9KYxnp3Clr0wrXoznPl+u/pIPbegHiI8+qvhtDKG RXutEQ9ykzpeRj5yqZKMR+dGHDIjO1w02tN9+5/sewqICXRo8Vgto0mjfNnKHe6+pL0u BPRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Iz6QB+RK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id q185-20020a6343c2000000b00584e2f083b6si2980630pga.85.2023.10.12.12.22.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 12:22:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Iz6QB+RK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 087DA81C57E9; Thu, 12 Oct 2023 12:22:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379624AbjJLTWA (ORCPT + 99 others); Thu, 12 Oct 2023 15:22:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbjJLTV7 (ORCPT ); Thu, 12 Oct 2023 15:21:59 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C57AB7; Thu, 12 Oct 2023 12:21:58 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 12 Oct 2023 12:22:09 -0700 (PDT) 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, }, }; -- 2.42.0