Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp952775rdg; Fri, 13 Oct 2023 06:16:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFAtH7Jvv0N205h19eSmriDFzZT3r/EX2pBrtJjtsukwk+tQ72UvvZJQYSqxudDoKaOg6N1 X-Received: by 2002:a17:90b:1292:b0:27d:67a:e8c0 with SMTP id fw18-20020a17090b129200b0027d067ae8c0mr97641pjb.22.1697202981472; Fri, 13 Oct 2023 06:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697202981; cv=none; d=google.com; s=arc-20160816; b=p6Vq5r08yw4bqjj4EN1jhjUUVD1cG3b8aIpMA5ZKSe7mqDgM/3rkrL9BvxwNoM9lM8 cZGLnuEDvtfUDETzsVCqDc/WiopUoiE4CzL4eBRJn24b5d8GSTJB8r6wHDim/b1Pn3/T wstU5TaRQZYxVaVhsuSm3NzhB9tZIMOZG4W7Fe5nuz8aOJBzPzlH/fcJRPRGYtKhwOfH XKPWvL8zT2dzUk42833Fwi/Ec5u/GPTAGPdAbxDSiwusyR7u3bvj31qlSMZ4a3AeG4+z IG6nr3YNvmTt5sZ6yzgD1W0abubsCr8Xo+TCoJxgECqThVrnMoRpCpT6YjhbYGqmhTEJ +khg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=BE8Qb+tdbZLY7YdAiBO+hBVANgfV/fDsUk/KkvY1d78=; fh=2vAnF/l4W4eaA+ABiJGk//sNGfMrRqYXlRgAQeunFYo=; b=yLkgPcrAev2GT4MnLhFom+S1KkxSPbkmp+7CQGGx2pNll2RwV/hzMxjWgXZAW7TWnr ZezjtjShi435rosYZzNP1rcdCq+yHGeLJT8idgzQREs5QAHbLug2N1KYS+q65MoBBVkK mLlX48AxyEHe6RGD7Jzse2SIe6eyXvr98Py6Ftk44fEkdD5OliNfn0Fv4iW4Jd1uMbUf 2YRYxPVWHpKhrn9EHV8/tibSVV5JchwUY8+zXh3Lt010lBYClSrTf0WhYhUhXPBkDdbr 5ZGizGV3KFoolCq0mmjkUJybw7Uyd7BJXUDJjLtCpoPXxWLEeY6v/UpzKcrn9hHKvzuR ZRuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FbFN9cK7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id pg15-20020a17090b1e0f00b00278f5fad9b6si66394pjb.139.2023.10.13.06.16.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 06:16:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FbFN9cK7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 2BCB482EC57B; Fri, 13 Oct 2023 06:16:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231823AbjJMNQK (ORCPT + 99 others); Fri, 13 Oct 2023 09:16:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231590AbjJMNQH (ORCPT ); Fri, 13 Oct 2023 09:16:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC49B91; Fri, 13 Oct 2023 06:16:06 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52048C433C9; Fri, 13 Oct 2023 13:16:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697202966; bh=AeyLxzVXp4snQoUowgdXYGOaSazywtRR9uBrWP/FXDg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=FbFN9cK7+7/w/muL8+KXexz1HLGb3n6ZTN9qmc/GyDP6LNOA50t0/CsYdbXZtt6ao 8PjCBQobr+sYezwCxR77wktQt2zJruVXxS/Kid27wolCLAlsVeYPgRW8qkv/4G6sNU OXygYsgXKGQGH6Ycf+DbdZOUnsO+KUlxibmP38KCYz6KEtVZdCxsREn/Z4QfkzuUqs Uc/v8bkDRpA/qEiOPfyTswyPHld5ZyK80iYD/xA41tU9iy5ac3/yetBzo+RJozY4V5 XYeTWLg9qEsjyhkTv+BgLpG9WWT+yqw+tx7rhty1xtKfSvIuST22+X6NSrZx2vm/8q cGSu9brb7srPg== Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-5041d6d8b10so2814546e87.2; Fri, 13 Oct 2023 06:16:06 -0700 (PDT) X-Gm-Message-State: AOJu0YwaoOVgLnYvvsLhUKIWZ+TavAbXigZRsbvnUX3MrB4yOrk9kzLp vUtb2E0+wI5+GRqzYEs9BCSKdRhKG+MOQJUemA== X-Received: by 2002:a05:6512:3f4:b0:504:7dc9:671a with SMTP id n20-20020a05651203f400b005047dc9671amr18824302lfq.69.1697202964533; Fri, 13 Oct 2023 06:16:04 -0700 (PDT) MIME-Version: 1.0 References: <20231012192149.1546368-1-robh@kernel.org> In-Reply-To: From: Rob Herring Date: Fri, 13 Oct 2023 08:15:51 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] fpga: xilinx-pr-decoupler: Fix unused xlnx_pr_decoupler_of_match warning for !CONFIG_OF To: Xu Yilun 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 howler.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 (howler.vger.email [0.0.0.0]); Fri, 13 Oct 2023 06:16:18 -0700 (PDT) On Fri, Oct 13, 2023 at 4:37=E2=80=AFAM Xu Yilun = wrote: > > 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? Yes, that's fine. Rob > > 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 'xln= x_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-p= r-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_dri= ver =3D { > > .remove =3D xlnx_pr_decoupler_remove, > > .driver =3D { > > .name =3D "xlnx_pr_decoupler", > > - .of_match_table =3D of_match_ptr(xlnx_pr_decoupler_of_mat= ch), > > + .of_match_table =3D xlnx_pr_decoupler_of_match, > > }, > > }; > > > > -- > > 2.42.0 > >