Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp836282rdg; Fri, 13 Oct 2023 02:37:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG23WXNxLIO3WibTeenGMH8FdrYgILAA6T7U1/Xtj5Y+mWtXTkraGsKTZt7VDaIC1Daq4e8 X-Received: by 2002:a05:6a00:cc4:b0:68f:d6db:5d66 with SMTP id b4-20020a056a000cc400b0068fd6db5d66mr28441924pfv.16.1697189848571; Fri, 13 Oct 2023 02:37:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697189848; cv=none; d=google.com; s=arc-20160816; b=GvTWHfvlk/vkfjct18O8aFIR/hmCKH8OIq4KOk+c/hMr5j9eFLf8uZjDV0MYzSDk3N DjcuIsTVLodj4fjG2Em9098YnuAArtENbZBx7gv1rRFIvIYGuEpvANvM0FmCxqZwy2/5 XR8yUpS7DTVFIaRm2e52K3PrTULlBdBOBJAUTesmVZ8fzzhcNF+EM6Mvp2wJM/lJPBh1 5Z/TeTGZi4fIMjwULW3cpXUFrqD2iIRpgEvu0BMwjic3QhMkHZjJ2Nly8+Sc2Cd7o1Cr g0SMtai7pMYBmYzb4RnUOFWHSVFXzBHq/EcGHPsxTSQJN/x+QKVkb4l4gOjQ5QoQ4dIk zZtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JpIVqE3OCeH+QAb6bMA5nhG3RljUnJZMgkBA7onVpU4=; fh=3CTp3HGztGgbEU9k5LhOKqWO1Q//hehPquGANgdHiRU=; b=BbQwe9TK/P1aKTVnf67OwhexkAGmrcnvat9BajNq41ng/sOR3/z8k/k1QSvhYvaaTT he8IOFgXORb2CuhjoepHtqRBy+0yr18poByLI4S42gmWQRPWePRk+D1E8K86JXjGUtwc moF/rtXwyksa6RcDJHsXxPo05QDKB/7yBMi0d2i2u5h9imCyY0ffklsMf5TJpZ6Ncc6E pwQIwN6xbZbNQ1ZC/oaLIoDio8p8BI+TP+9TkSELHbbPVJNggLKJBU6z0K/pdLTOdU6D crxbjoJ8urtyfGN1V1VuWtjaS0KgYrh7wC5WM6Bjz1xASquuugNfNcMSuVGXk1iBCS/e Sb1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SH5Yy4Gj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id f18-20020a056a0022d200b006b4ac79384csi485789pfj.347.2023.10.13.02.37.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 02:37:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SH5Yy4Gj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 329268382C17; Fri, 13 Oct 2023 02:37:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230512AbjJMJhS (ORCPT + 99 others); Fri, 13 Oct 2023 05:37:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230424AbjJMJhR (ORCPT ); Fri, 13 Oct 2023 05:37:17 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9593795; Fri, 13 Oct 2023 02:37:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697189836; x=1728725836; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UrEbenIXGfNrxoFbHyeBMYdN4ubBHqzWO0s1RMba6Ds=; b=SH5Yy4Gj2lDIlEyVDxm3dcAib8WO/TF9YLxoScC1hU3cnIwzJSBz8+jg wFWo/Z1pfcgh6Ebvwskyr/3CQznApHXnKV0+tRfyWIxJyWWaZFqpirIev rZRNQoUi9gZB+XOD/9UfdwRk+JNjhWimwbvWiXYiZ1kMEfVSLjq1DwfKZ VsZ4svv4U6S4wJaUiOzAm0qAghe8j3jXjIyDhOII/Y5mmIzTBb+FA7C0C 7oc/TPNUz5XPsP/CKhjVroiNihctu1XsZhPjYy2Nadj49ooY40MPU+5Zf 59tEfm4yVWrGkUrDLTIhluUFFbeKMRLikqlLtoCs3nzmm4glzpVRZ9Bt9 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="364506756" X-IronPort-AV: E=Sophos;i="6.03,221,1694761200"; d="scan'208";a="364506756" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2023 02:37:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="928352273" X-IronPort-AV: E=Sophos;i="6.03,221,1694761200"; d="scan'208";a="928352273" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by orsmga005.jf.intel.com with ESMTP; 13 Oct 2023 02:37:11 -0700 Date: Fri, 13 Oct 2023 17:36:13 +0800 From: Xu Yilun To: Rob Herring Cc: Moritz Fischer , Wu Hao , Xu Yilun , Tom Rix , Michal Simek , kernel test robot , linux-fpga@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fpga: xilinx-pr-decoupler: Fix unused xlnx_pr_decoupler_of_match warning for !CONFIG_OF Message-ID: References: <20231012192149.1546368-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231012192149.1546368-1-robh@kernel.org> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,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 fry.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 (fry.vger.email [0.0.0.0]); Fri, 13 Oct 2023 02:37:26 -0700 (PDT) On Thu, Oct 12, 2023 at 02:21:48PM -0500, Rob Herring wrote: > Commit 8c966aadcc02 ("fpga: Use device_get_match_data()") dropped the Hi rob: Unfortunately I re-applied Commit 8c966aadcc02 and the previous commit id is lost. Since the 2 patches are not upstreamed yet, could I just merge them into one? Thanks, Yilun > 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 >