Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2248209rwb; Mon, 15 Aug 2022 01:31:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR7jncy1BVohzMmNJL7Z7oKqQ4jEAdJ9SWc6qSIUbMScwxVbAL9h07eOsUlXkelv43Otgr0C X-Received: by 2002:a05:6402:d05:b0:425:b5c8:faeb with SMTP id eb5-20020a0564020d0500b00425b5c8faebmr13376114edb.273.1660552266180; Mon, 15 Aug 2022 01:31:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660552266; cv=none; d=google.com; s=arc-20160816; b=B4LNKJnFjcbPI/O3ndlUWhBGZgdyqm6tKxdssWhNxMOcMo2Dv0Rojv0C8mWV8fiUtR CaKRrZ5LugpK9TKQyTwsmgHL3DF6t4b/tlwvMb1/nzXpo97uM9sJcHrnpWz55+aM+Her 0fdgMaLCZEySnzgt5ep8K6rbf6aGGpasDPMLR4m/PPIo2QZM4RyZevg1X2B8jHLDY0GY draqVpcU6Ig36kFrd8771ebrgitAbuZhTyYc+Y0IdsPPJg5tIi4JMG5fb7/JWlhORROb 8I2dKhS1c2azWyKADngIbgRYp15MDhMIhoPSj8v3xIh5JXzz8Lu9heApgzekEf0yVrUr tHvQ== 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=ccR4jofJWS4WjddLtDejUK8NNWJJwrLYpOoeEAK37hk=; b=tslIVovSimLnpXjpoU1hNIU3LKcTSoBRb4vP4XLtQoTVohwARCBiAASZ/0OTL9Q0wZ 2rbJuAq+LN6Q+3iK2sA9hktlgtrJ4Y7tYLlRko24f3oXL2KlTp9LCvjxLbif3A5goE9S TRXYcfHjEO+LlAj8nb++lYhh0Jxs9fVmYWivJCXs+x7UlgGIVz859hEI+4ZjAs5CwhQu xijCSQsnV+xYYh8XKICyWjsrnMjU/2mpXfwvXI/Xte47lsb4JLvST0Gr0wHkQoAu8woY Mjf+Jfyx8h/YNFx6G1dj/4I8y6pzAnDQuz1k4qKOw0rB46S1WVtLfhpQ/iTtUqnZt+VU W7Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z4OrasUx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l1-20020a056402344100b0043cd5302108si6468140edc.297.2022.08.15.01.30.40; Mon, 15 Aug 2022 01:31:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z4OrasUx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231362AbiHOIYD (ORCPT + 99 others); Mon, 15 Aug 2022 04:24:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231459AbiHOIYB (ORCPT ); Mon, 15 Aug 2022 04:24:01 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E00FA1F61F for ; Mon, 15 Aug 2022 01:23:59 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id n4so8204267wrp.10 for ; Mon, 15 Aug 2022 01:23:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=ccR4jofJWS4WjddLtDejUK8NNWJJwrLYpOoeEAK37hk=; b=Z4OrasUxwxONGoGSbJZ7h5ZiVDJCbioDFPaHHgazEMdyqJJQyiku6tGWNWKTBxDDij 0XFLBmX+VKlhOW3GlHqttMscBJR/jHcG+2v12k6Saa+CiBcOnZdA3V1wyJLfs2NW9luD OI12bNtPzaSOi2q8S34U+cWSx6mFLjiXHMgGEyxjYoxR9ewN8DqFLFMGEaOLtkFCU7K6 uMw0JCmAI4mkcpndUwsHxNzg4EGDXfB1SNKIN6iinjKhq5AiHj8qzTYoZaIWD/5JRuWL LT68U7GpoBQsbC/iS1pWAanZb98vASc0qbmjpZsf2YHcQ/Bm6TdkViWsHUFj4DVL48Kn eXDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=ccR4jofJWS4WjddLtDejUK8NNWJJwrLYpOoeEAK37hk=; b=jA2nWmwRmrt6Blgj6buQ0XDGYtiaEfwecXHCiPH1ujp341rjY3B6XhLfp0GJhDIZrA 6sNJTQqTdeMguKPv0wfLLO89Sggl141tN0P1v2BTdloOpfMdgvvOT+VR4P1sxnA9wXEY ZHDWFz6JpwPv3Oc1LrmHN3Mzu8gGqfhzXyxGm/muCkN95MblmxdECyNTL4uytTxKkehY RC0JcB2L/x2jSqgiT5RpH5awod/S/0ULJvT/7z+RmOVUJpDbK1Bfj/B9y7ZlgakLxcXp Ze11aN1MK2nkHTM9cTTNGYj59FnmCmXHPTuLFOMiKu+wAyYpau8+ttwputHWgDudlNtw hAoQ== X-Gm-Message-State: ACgBeo2BZa/PAOjNjSAapzVj/2cCB8mYU3gEjorOB0+IhQ1YYOxvBFHH 7hKRgR+O+7KtZTd24A0yvqq3lg== X-Received: by 2002:a5d:5b17:0:b0:220:7cec:2953 with SMTP id bx23-20020a5d5b17000000b002207cec2953mr8158320wrb.697.1660551838382; Mon, 15 Aug 2022 01:23:58 -0700 (PDT) Received: from linaro.org ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id q65-20020a1c4344000000b003a54d610e5fsm9033154wma.26.2022.08.15.01.23.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 01:23:57 -0700 (PDT) Date: Mon, 15 Aug 2022 11:23:56 +0300 From: Abel Vesa To: Peng Fan Cc: "Peng Fan (OSS)" , Stephen Boyd , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "abelvesa@kernel.org" , "mturquette@baylibre.com" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-clk@vger.kernel.org" , kernel test robot Subject: Re: [PATCH V2 2/8] clk: imx93: guard imx93_clk_of_match with CONFIG_OF Message-ID: References: <20220815013039.474970-1-peng.fan@oss.nxp.com> <20220815013039.474970-3-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 22-08-15 08:19:52, Peng Fan wrote: > > Subject: Re: [PATCH V2 2/8] clk: imx93: guard imx93_clk_of_match with > > CONFIG_OF > > > > On 22-08-15 09:30:33, Peng Fan (OSS) wrote: > > > From: Peng Fan > > > > > > There is build warning when CONFIG_OF is not selected. > > > >> drivers/clk/imx/clk-imx93.c:324:34: warning: 'imx93_clk_of_match' > > > >> defined but not used [-Wunused-const-variable=] > > > 324 | static const struct of_device_id imx93_clk_of_match[] = { > > > | ^~~~~~~~~~~~~~~~~~ > > > > > > Use CONFIG_OF to guard imx93_clk_of_match to avoid build warning. > > > > > > Fixes: 24defbe194b6 ("clk: imx: add i.MX93 clk") > > > Reported-by: kernel test robot > > > Signed-off-by: Peng Fan > > > --- > > > drivers/clk/imx/clk-imx93.c | 2 ++ > > > 1 file changed, 2 insertions(+) > > > > > > diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c > > > index f5c9fa40491c..5099048b7916 100644 > > > --- a/drivers/clk/imx/clk-imx93.c > > > +++ b/drivers/clk/imx/clk-imx93.c > > > @@ -321,11 +321,13 @@ static int imx93_clocks_probe(struct > > platform_device *pdev) > > > return ret; > > > } > > > > > > +#ifdef CONFIG_OF > > > > Hmm, I'm not sure if we should do this or rather should we make this driver > > depend somehow on CONFIG_OF in Kconfig. > > > > Looking at the other i.MX clock drivers, it would seem we need this for all > > them too. > > No. It is i.MX93 use of_match_ptr, I could drop it as i.MX8M. > > Thanks, > Peng. Right. Thanks for pointing that out. > > > > > I fairly OK with this, but maybe Stephen suggests something different. > > > > Reviewed-by: Abel Vesa > > Oups, wrong address here too. Reviewed-by: Abel Vesa > > > static const struct of_device_id imx93_clk_of_match[] = { > > > { .compatible = "fsl,imx93-ccm" }, > > > { /* Sentinel */ }, > > > }; > > > MODULE_DEVICE_TABLE(of, imx93_clk_of_match); > > > +#endif > > > > > > static struct platform_driver imx93_clk_driver = { > > > .probe = imx93_clocks_probe, > > > -- > > > 2.37.1 > > >