From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752768AbdFUQ3t (ORCPT ); Wed, 21 Jun 2017 12:29:49 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:46364 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752830AbdFUQ3p (ORCPT ); Wed, 21 Jun 2017 12:29:45 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A6E1B6074E Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sboyd@codeaurora.org Date: Wed, 21 Jun 2017 09:13:39 -0700 From: Stephen Boyd To: Anup Patel Cc: Stephen Rothwell , Mike Turquette , Linux-Next Mailing List , Linux Kernel Mailing List , Sandeep Tripathy , Ray Jui , Scott Branden Subject: Re: linux-next: build warnings after merge of the clk tree Message-ID: <20170621161339.GX4493@codeaurora.org> References: <20170621093423.695ba952@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/21, Anup Patel wrote: > On Wed, Jun 21, 2017 at 5:04 AM, Stephen Rothwell wrote: > > Hi all, > > > > After merging the clk tree, today's linux-next build (x86_64 allmodconfig) > > produced these warnings: > > > > WARNING: vmlinux.o(.text+0x819309): Section mismatch in reference from the function sr_genpll0_clk_init() to the function .init.text:iproc_pll_clk_setup() > > The function sr_genpll0_clk_init() references > > the function __init iproc_pll_clk_setup(). > > This is often because sr_genpll0_clk_init lacks a __init > > annotation or the annotation of iproc_pll_clk_setup is wrong. > > > > Introduced by commit > > > > 654cdd3229cd ("clk: bcm: Add clocks for Stingray SOC") Thanks for the report! > > All sr_xxx_init() had __init attribute but we had removed it based on > review comments. > > The iproc_pll_xxx() APIs are shared across various clk drivers of iproc SoCs. > > I suggest we bring back __init attribute for all sr_xxx_init() in sr_clk.c ?? > No. We should remove __init from the iproc_pll_clk_setup() function. ---8<--- From: Stephen Boyd Subject: [PATCH] clk: iproc: Remove __init marking on iproc_pll_clk_setup() Now that this function is called from driver probe routines, it needs to drop the __init marking because it isn't just called from init code. Reported-by: Stephen Rothwell Cc: Sandeep Tripathy Cc: Anup Patel Cc: Ray Jui Cc: Scott Branden Fixes: 654cdd3229cd ("clk: bcm: Add clocks for Stingray SOC") Signed-off-by: Stephen Boyd --- drivers/clk/bcm/clk-iproc-pll.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/clk/bcm/clk-iproc-pll.c b/drivers/clk/bcm/clk-iproc-pll.c index 2d61893da024..375d8dd80d45 100644 --- a/drivers/clk/bcm/clk-iproc-pll.c +++ b/drivers/clk/bcm/clk-iproc-pll.c @@ -617,12 +617,12 @@ static void iproc_pll_sw_cfg(struct iproc_pll *pll) } } -void __init iproc_pll_clk_setup(struct device_node *node, - const struct iproc_pll_ctrl *pll_ctrl, - const struct iproc_pll_vco_param *vco, - unsigned int num_vco_entries, - const struct iproc_clk_ctrl *clk_ctrl, - unsigned int num_clks) +void iproc_pll_clk_setup(struct device_node *node, + const struct iproc_pll_ctrl *pll_ctrl, + const struct iproc_pll_vco_param *vco, + unsigned int num_vco_entries, + const struct iproc_clk_ctrl *clk_ctrl, + unsigned int num_clks) { int i, ret; struct iproc_pll *pll; -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project