Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1871737pxk; Sat, 5 Sep 2020 00:44:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAJbiV1t6HQv26uhxYJYacsrvzNWilfFL9l1lQ5SkarqUN3NNcNwZfV2JA/3HPr7hDYJ4X X-Received: by 2002:a17:907:7206:: with SMTP id dr6mr11843617ejc.546.1599291867571; Sat, 05 Sep 2020 00:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599291867; cv=none; d=google.com; s=arc-20160816; b=U+iAyEEEzYLgnLrYx1ETr1/8a+yHb22LbunHMDhglzPVlGyXOKWWX6eDiByiZBdX+Z zj0c//1vJYGrO/SFUKwh98jgKzMo1wqmHVju2xs6Ezw1DIJ/jn44lScq+IsWLS2I/P1X 1/7Jn/IaM6zLM1sI+9Vab+9uoTdvXbLDMNSN0PqObbn/rP2EPmhhvuHBqzrtn2FwqjTu LoOpcrhagVVjr3JtO8OhNWDtwb6vrv5XMNuVN0lDRXp3gR9WqSXqIDpa7ZWB3dfQ+LTu jJzyHCxtMoGF6nnZgLWWzQUbb9LHb7Upfne5Ib9ofE4bjKgCZkbO+qJxd4a2eoCJ9/F2 XXRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=squHDHhkqgclyoOQocUz+iI9wlqrlMTjb4trdtGKRjw=; b=aPSHxtQxVLkvTSTSVwMLEd3IAqtMjw06jEP1NHWcFQT51ArOoIHqVMY3yoIqXx7ySA ILtAAuCoGX09w5FnkhGomlAaLs3RvkPEt2Fi4H1FVjWzUx0mhmv1kRNFJKNMReZLPfCM Vs3TXMMZWd2ijU9l0zMJDlkBjttkeQy8iaQwUAV188cGdXxA/gnFC4g9ZPKRTy7KShFP HLC+V9jmPYa18nxLMNWuSL7KQmicfk5ZlJvnaGdtE6nO9x3ZL1tG8ICXKQlYCW1HLgyl VHlai8b6c3IKu25/USY6OyxA0rOGto8l4iht7nCaNP2e+3Bt5XGVDzDfpsGjk4KJMJkx F0tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=N5RUvhkv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w1si5550223eds.137.2020.09.05.00.43.43; Sat, 05 Sep 2020 00:44:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=N5RUvhkv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726372AbgIEHmn (ORCPT + 99 others); Sat, 5 Sep 2020 03:42:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:56294 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725818AbgIEHmn (ORCPT ); Sat, 5 Sep 2020 03:42:43 -0400 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 77FF320760; Sat, 5 Sep 2020 07:42:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599291762; bh=aE/NOhFxqVdLILAny7qv4J/hsZCDiNF+XqbkJ74DkqA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N5RUvhkv9uIDJKzjJHyVIrUFQfyy9pvwE0Hvo2X+O1UQDAq4m3pclG1NkX7vRhTzc J/N9AiFISYBtNAyH6jfmuNmBhwF1h8seTDraz2YW0Wg+v6zS6glPjrOBl6MjUXzm6p D0rsGJIKd6Z/4e72/Ctap8AFaiWdIY94WWiGDoC4= Date: Sat, 5 Sep 2020 15:42:36 +0800 From: Shawn Guo To: Krzysztof Kozlowski Cc: Russell King , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Michael Turquette , Stephen Boyd , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH 1/3] clk: imx: Declare clock init functions in header acessible from mach Message-ID: <20200905074235.GL9261@dragon> References: <20200902150244.14347-1-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200902150244.14347-1-krzk@kernel.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 02, 2020 at 05:02:42PM +0200, Krzysztof Kozlowski wrote: > Multiple files from arch/arm/mach-imx/ use clock init functions which > are defined in the IMX clock drivers. Declare them in globally > accessible header to fix GCC warnings: > > drivers/clk/imx/clk-imx21.c:122:74: warning: no previous prototype for 'mx21_clocks_init' [-Wmissing-prototypes] > > Signed-off-by: Krzysztof Kozlowski Fabio is working on converting these platforms to DT only, so we will be able to use CLK_OF_DECLARE() for calling these clock init functions soon. Shawn > --- > drivers/clk/imx/clk-imx21.c | 1 + > drivers/clk/imx/clk-imx27.c | 1 + > drivers/clk/imx/clk-imx31.c | 1 + > drivers/clk/imx/clk-imx35.c | 1 + > include/linux/clk/imx.h | 11 +++++++++++ > 5 files changed, 15 insertions(+) > create mode 100644 include/linux/clk/imx.h > > diff --git a/drivers/clk/imx/clk-imx21.c b/drivers/clk/imx/clk-imx21.c > index 077b4a7123ce..2105ef57b6bc 100644 > --- a/drivers/clk/imx/clk-imx21.c > +++ b/drivers/clk/imx/clk-imx21.c > @@ -7,6 +7,7 @@ > > #include > #include > +#include > #include > #include > #include > diff --git a/drivers/clk/imx/clk-imx27.c b/drivers/clk/imx/clk-imx27.c > index a3753067fc12..c0d8bcdf0719 100644 > --- a/drivers/clk/imx/clk-imx27.c > +++ b/drivers/clk/imx/clk-imx27.c > @@ -2,6 +2,7 @@ > #include > #include > #include > +#include > #include > #include > #include > diff --git a/drivers/clk/imx/clk-imx31.c b/drivers/clk/imx/clk-imx31.c > index 4bb05e440cdd..25be4c292e44 100644 > --- a/drivers/clk/imx/clk-imx31.c > +++ b/drivers/clk/imx/clk-imx31.c > @@ -6,6 +6,7 @@ > #include > #include > #include > +#include > #include > #include > #include > diff --git a/drivers/clk/imx/clk-imx35.c b/drivers/clk/imx/clk-imx35.c > index e595f559907f..baf8d236d6ef 100644 > --- a/drivers/clk/imx/clk-imx35.c > +++ b/drivers/clk/imx/clk-imx35.c > @@ -5,6 +5,7 @@ > #include > #include > #include > +#include > #include > #include > #include > diff --git a/include/linux/clk/imx.h b/include/linux/clk/imx.h > new file mode 100644 > index 000000000000..f6394d1b0a94 > --- /dev/null > +++ b/include/linux/clk/imx.h > @@ -0,0 +1,11 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > + > +#ifndef __LINUX_CLK_IMX_H > +#define __LINUX_CLK_IMX_H > + > +int mx21_clocks_init(unsigned long lref, unsigned long href); > +int mx27_clocks_init(unsigned long fref); > +int mx31_clocks_init(unsigned long fref); > +int mx35_clocks_init(void); > + > +#endif /* __LINUX_CLK_IMX_H */ > -- > 2.17.1 >