Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp734315rdb; Thu, 19 Oct 2023 18:56:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHw6nCTtVKf2W7whQOFLOtVAPNjiwDIfmQPEQ+ymKhs1bio3ZZL4GbFITAaR1R6GMaQzaT X-Received: by 2002:a05:6808:217:b0:3ae:12f6:ac51 with SMTP id l23-20020a056808021700b003ae12f6ac51mr559494oie.41.1697766975077; Thu, 19 Oct 2023 18:56:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697766975; cv=none; d=google.com; s=arc-20160816; b=uCOJduHJpQ0SJe0+8Soxv7ajC3XtAJeqiOM/CMnTWV/JUnlNsx2qjfW1RSZavEs21i PTdLBbvjSrcn4GyQAFSc7etNXSQYiIKbGM//+/0kQ69Ke9oBUVnnVXkDZmgmab2i+6un um8NG7r51xsWGMmYNqE3mZ7ub77dXmiYHuUba9EtmNHAXLAdXWzz7U4E/eb858fJY//V wvqfXojOQG708Xt4wVsl+Gfkj6qJoazsPRiDIiVt8FSug+8vXq4Yv9rZlEfhHIAoZKI1 iBsR4P0oi7K7uZb2263oxKrTOgFEi37un2Oq5cD1SWa7Ar1glSfJAbfM3dvrVjrd+ocx SEcw== 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=KvPyuqDqcosqyn4lrxw5GNt0F3xihh59KhS64aawTMo=; fh=fN39LEPwHm/y9hyUcVL+T5W24H5oR+m6ztQr2rw8Jjg=; b=qA9tQZrc8oBHEYfXx/7nrYJpdszcb/DSyN3+byjAOyw3wLjwMPkrafOxmzkVLDPWXC sxVykmQJnp8XfhIpVoTDvW3B00vO9Phi0aqp07ccMYhWAXWusuwnWJshZsSD/RwVpask H5BMe2XONRGIFKI1fX9n77gwfDF8fh/5lco3HTziIJlTXRE10p0EWwCBy0oTODMQ7ra1 uboEKtwpg9bgZ3e5jRFquWNPMmOQtv0D3k3bsD+WTG6aSDTu75MTKFIRtZtzjJlKm5OS JkgrMbxTBIc+n8jk+ac1mIkXgndR0e18xTPU18nlIPGo96vasasQMItQWAD4D9jejnQ0 nKjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mIm4hX1q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q27-20020a63f95b000000b005777bea0b6asi812699pgk.859.2023.10.19.18.56.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 18:56:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mIm4hX1q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 41EB28288C99; Thu, 19 Oct 2023 18:56:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346788AbjJTB4K (ORCPT + 99 others); Thu, 19 Oct 2023 21:56:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346840AbjJTB4H (ORCPT ); Thu, 19 Oct 2023 21:56:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E37FBD52 for ; Thu, 19 Oct 2023 18:55:57 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A437AC433C8; Fri, 20 Oct 2023 01:55:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697766957; bh=TfoVQ04V/DyH8idpHC0lkA7yHOCLnTARSYc6R2lyKg4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mIm4hX1qfoL/lUHYOi8BOgAZAnZLnfHF6RPhX/EoK7TJSahGp8oBq/ONeFLaHjInK WNAwRoxTo3IQEMqKklwVL8j2MdBo8zZ3p1o8WetIbc8v6p7U2KFowsojHO/LTe9QJO pLwZ24G6YPugyDyLOnsSM76+TlLhS3HS2yJcoC2EdyExNz334wSYAICYxkYOXM0KDw Ek5u0vEFY6+kYxaHw4wU45Sm4dNH9eHlWNz6dwuLyVELheqJ4m4ff9XDumhuGtUSLo en5DXKhlip/aIZZH8LqqkeyXAfWRtu54Yk7OpRKxrcXOCxigZebX/VbdLW4VSBajQV mrQXaD3OAdxyQ== Date: Fri, 20 Oct 2023 09:55:47 +0800 From: Peter Chen To: Rob Herring Cc: Greg Kroah-Hartman , kernel test robot , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: chipidea: Fix unused ci_hdrc_usb2_of_match warning for !CONFIG_OF Message-ID: <20231020015547.GA1119400@nchen-desktop> References: <20231019183015.841460-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231019183015.841460-1-robh@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 19 Oct 2023 18:56:14 -0700 (PDT) On 23-10-19 13:30:15, Rob Herring wrote: > Commit 14485de431b0 ("usb: Use device_get_match_data()") dropped the > unconditional use of ci_hdrc_usb2_of_match resulting in this warning: > > drivers/usb/chipidea/ci_hdrc_usb2.c:41:34: warning: unused variable 'ci_hdrc_usb2_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. > > Fixes: 14485de431b0 ("usb: Use device_get_match_data()") > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202310131627.M43j234A-lkp@intel.com/ > Signed-off-by: Rob Herring Acked-by: Peter Chen > --- > drivers/usb/chipidea/ci_hdrc_usb2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/chipidea/ci_hdrc_usb2.c b/drivers/usb/chipidea/ci_hdrc_usb2.c > index 180a632dd7ba..97379f653b06 100644 > --- a/drivers/usb/chipidea/ci_hdrc_usb2.c > +++ b/drivers/usb/chipidea/ci_hdrc_usb2.c > @@ -119,7 +119,7 @@ static struct platform_driver ci_hdrc_usb2_driver = { > .remove_new = ci_hdrc_usb2_remove, > .driver = { > .name = "chipidea-usb2", > - .of_match_table = of_match_ptr(ci_hdrc_usb2_of_match), > + .of_match_table = ci_hdrc_usb2_of_match, > }, > }; > module_platform_driver(ci_hdrc_usb2_driver); > -- > 2.42.0 > -- Thanks, Peter Chen