Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp556042pxk; Wed, 2 Sep 2020 08:40:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1IN9EhhFkfg/OPZdl3ORo2XEL7PmFEiQm0QgSSvB20XJ+7XvXzipkcIdYX97dNxWgqVQL X-Received: by 2002:a17:906:a981:: with SMTP id jr1mr560016ejb.99.1599061222455; Wed, 02 Sep 2020 08:40:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599061222; cv=none; d=google.com; s=arc-20160816; b=jDE/tPQ8KkPkqBU2vIzJLO2l7BcRR5lMZzxjt1FzvK+22yfUMauiS7ZMDETsPINd1c rGwCXB1OQ2NhNfsQjwKnTkcDIKnCFiDJY8/6xyeP6PzhmwVvut2Wh+7I/CDCzWKFeWBP Sc7uMvJKV4HSEUFw82XPozxFiW7hWMTO4GjUEF5FDAMSokyrMFSToEm1ZhhfekaV7iBl gbTVQa9126rf2cb/glkP73+mA7rWDuYLBBp8N8OgkFlOYvPkI9tmwMTBngbESBdtQFmk BFF7CjMhaL957Hb0LoUUw9eGnMoN0QpBRgvzmkzKtIPeZRvKpAlnXjIza/2neIuG8PpN 08rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=aytzVXXEl7jzS8r8KXaeBSGYWdi5w3+PJ/GEsifqWIs=; b=bwJjogXSOr7qnIdlcog7gmZmLsgk3+uUUlgNiQM9ZhUM85NlkJfnkcZlb4r8hwu+zT k12Plb7oAvhqdVYLCxBR91TgxvrQM6Jm9VzDXdgeiYTnKvm4OfYaMC5I4wO4xBVYNPjr UM6x9Fz+dx6Y9jBIV1C64zNZQmTR+QEy15a4mDVBhlDk6JDSLaHcHdLPvq4ZBpg9gBON Mwkgq+OP+E4tfGO0BCsr11lf65lGvJRz5LjIJ+VNWEjbZLTzioNdfg3UDgFtKPTa8KYe cPpDgMdCaiWdoOo+M6DLzEZCkntfMVWoE0604aEL4lJe8E4hkZj5PfC+rZQ8OrRN4eTF 9++w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mQl7IDel; 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 rp17si2820526ejb.458.2020.09.02.08.39.51; Wed, 02 Sep 2020 08:40:22 -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=mQl7IDel; 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 S1728393AbgIBPi6 (ORCPT + 99 others); Wed, 2 Sep 2020 11:38:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:40780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726173AbgIBPC5 (ORCPT ); Wed, 2 Sep 2020 11:02:57 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7BCC620773; Wed, 2 Sep 2020 15:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599058974; bh=T6Yn3tddYjoK53UIen+h42dRX/nUCLrBYpMRIo/p/jg=; h=From:To:Cc:Subject:Date:From; b=mQl7IDeluJ5si0Krf40peleU/p5DkqAdXabeJfq4UXZPZwSy48Z41gWvswjYvSbx5 aCnXwidGvUsRyRp1ZAYL9ne3hMwdL855PygrXIQImnJbPLmSvEDr5qoT6m0s53XQR9 keKYV1/Tm/01ybiTAwuDEnp7WfqNPlBD9B1dVyhU= From: Krzysztof Kozlowski To: Russell King , Shawn Guo , 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 Cc: Krzysztof Kozlowski Subject: [PATCH 1/3] clk: imx: Declare clock init functions in header acessible from mach Date: Wed, 2 Sep 2020 17:02:42 +0200 Message-Id: <20200902150244.14347-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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