From patchwork Tue May 16 15:30:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243261 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C9EECC77B7A for ; Tue, 16 May 2023 15:31:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=E2QSpiSslZCdfG+t17KVbSKQtCEra6rODW6J8itZ+Ys=; b=UZ9vV9VwnYoAnD cJpK9Z122z8ZP93flvassxk3+S4C0bAH5qIgPtK10oDcpYW2sj25yttL2zl8aaYSz2h8CWDKumW+A PsIe/2tUjppqDR554pGK3Xse6AM1uQ5gkF6Q7HhI3hmILq1x6SC4rtUe6U29UuQMWQIEfw6AS38PM h4zU6f9fDtrOorkuog2HFPjs5u+y/mkhVXw7dJ542v63rSGo2gONe/j6l6ZV9ncaCHYVLidyokoLI IoXPk231fdE8ptFpvcLCQXwscHHujGTDRxTdKvOBWUxspng8ND4zsPabaCV32psens9MaXANsiW88 SiOWg4TTP8kDeWqKYtWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pyweI-006Fsl-1u; Tue, 16 May 2023 15:31:38 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pyweF-006Fs3-2K for linux-arm-kernel@lists.infradead.org; Tue, 16 May 2023 15:31:37 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 907B363B5A; Tue, 16 May 2023 15:31:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF0DEC433A4; Tue, 16 May 2023 15:31:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684251094; bh=jSt93p6QqRHSfhQI7J2hfgJYmouz2AQLVyfURXXqX8s=; h=From:List-Id:To:Cc:Subject:Date:In-Reply-To:References:From; b=AwomvbT8Pm+fhyGJwGnUOYhunar1+rxNklkbAupsLWDpLmLjStG8P95r0LW0TZ7Sn rUt0ea8SiWMVTZAiu4cMYZbbqvqcv2e5DTPOk7p1oIHvJ+Ao0RHe6GVdZ5zJRnAPVd qy/Nqrez73CiiRfbe0msHl+n84nCTm1LvattabEfx9Ed1CbYinH+MqmnQ4vCIsy8bD HpHPXOv+AbSGsNFushKq1hOP4kIPFJLROWGA9jOdBsyH0QKtmHcFeRb2CsRWAEBNXZ gM8iD9hn1D5PUXY3XhTLS9pkXmC1Abn+RFpluaep373/1+vT3WOghrCF2mY9s3EJiv NZdHPN/tuvyTQ== From: Arnd Bergmann To: soc@kernel.org Cc: Arnd Bergmann , Russell King , Bartosz Golaszewski , Hartley Sweeten , Alexander Sverdlin , Andre Przywara , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Vladimir Zapolskiy , Aaro Koskinen , Janusz Krzysztofik , Tony Lindgren , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Viresh Kumar , Shiraz Hashim , Sudeep Holla , Lorenzo Pieralisi , Linus Walleij , Michael Turquette , Stephen Boyd , Greg Kroah-Hartman , Alan Stern , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-clk@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH 01/13] ARM: davinci: fix davinci_cpufreq_init() declaration Date: Tue, 16 May 2023 17:30:57 +0200 Message-Id: <20230516153109.514251-2-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516153109.514251-1-arnd@kernel.org> References: <20230516153109.514251-1-arnd@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230516_083135_841957_8A2B287C X-CRM114-Status: GOOD ( 17.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann The davinci_cpufreq_init() declaration is only seen by its caller but not the definition: drivers/cpufreq/davinci-cpufreq.c:153:12: error: no previous prototype for 'davinci_cpufreq_init' Move it into the platform_data header that is already used an interface between the two places. Signed-off-by: Arnd Bergmann Acked-by: Bartosz Golaszewski --- arch/arm/mach-davinci/common.c | 1 + arch/arm/mach-davinci/common.h | 6 ------ include/linux/platform_data/davinci-cpufreq.h | 6 ++++++ 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-davinci/common.c b/arch/arm/mach-davinci/common.c index c1ce6b2a8d48..7bc7018688de 100644 --- a/arch/arm/mach-davinci/common.c +++ b/arch/arm/mach-davinci/common.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include diff --git a/arch/arm/mach-davinci/common.h b/arch/arm/mach-davinci/common.h index b2a96cdf88da..010ba1df27b3 100644 --- a/arch/arm/mach-davinci/common.h +++ b/arch/arm/mach-davinci/common.h @@ -55,12 +55,6 @@ extern void davinci_common_init(const struct davinci_soc_info *soc_info); extern void davinci_init_ide(void); void davinci_init_late(void); -#ifdef CONFIG_CPU_FREQ -int davinci_cpufreq_init(void); -#else -static inline int davinci_cpufreq_init(void) { return 0; } -#endif - #ifdef CONFIG_SUSPEND int davinci_pm_init(void); #else diff --git a/include/linux/platform_data/davinci-cpufreq.h b/include/linux/platform_data/davinci-cpufreq.h index bc208c64e3d7..1ef91c36f609 100644 --- a/include/linux/platform_data/davinci-cpufreq.h +++ b/include/linux/platform_data/davinci-cpufreq.h @@ -16,4 +16,10 @@ struct davinci_cpufreq_config { int (*init)(void); }; +#ifdef CONFIG_CPU_FREQ +int davinci_cpufreq_init(void); +#else +static inline int davinci_cpufreq_init(void) { return 0; } +#endif + #endif /* _MACH_DAVINCI_CPUFREQ_H */