From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH] ARM: OMAP: clk_disable_unused: init section mismatch Date: Thu, 15 Nov 2007 12:41:23 -0800 Message-ID: <20071115204122.GE20686@atomide.com> References: <20071101171814.725820430@mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20071101171814.725820430@mvista.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-omap-open-source-bounces+gplao-linux-omap-open-source=gmane.org@linux.omap.com Errors-To: linux-omap-open-source-bounces+gplao-linux-omap-open-source=gmane.org@linux.omap.com To: Kevin Hilman Cc: linux-omap-open-source@linux.omap.com List-Id: linux-omap@vger.kernel.org * Kevin Hilman [071101 10:19]: > Fix the following warning when OMAP_RESET_CLOCKS is enabled: > > WARNING: vmlinux.o(.data+0x33a0): Section mismatch: reference to .init.text:omap2_clk_disable_unused (between 'omap2_clk_functions' and 'osc_ck') > > omap2_clk_disable_unused cannot be declared __init as it part of a > struct where the rest of the functions are not __init. > > Signed-off-by: Kevin Hilman > > --- > arch/arm/mach-omap2/clock.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > Index: dev/arch/arm/mach-omap2/clock.c > =================================================================== > --- dev.orig/arch/arm/mach-omap2/clock.c > +++ dev/arch/arm/mach-omap2/clock.c > @@ -739,7 +739,7 @@ int omap2_clk_set_parent(struct clk *clk > *-------------------------------------------------------------------------*/ > > #ifdef CONFIG_OMAP_RESET_CLOCKS > -void __init omap2_clk_disable_unused(struct clk *clk) > +void omap2_clk_disable_unused(struct clk *clk) > { > u32 regval32, v; > Pushing today. Tony