Russell King - ARM Linux <linux@xxxxxxxxxxxxxxxx> writes: > On Sat, Mar 03, 2012 at 01:05:21PM -0800, Tony Lindgren wrote: >> * Arnd Bergmann <arnd@xxxxxxxx> [120303 09:57]: >> > On Saturday 03 March 2012, Tony Lindgren wrote: >> > > Well 85631d2 builds fine, looks like now some more includes of >> > > plat/hardware.h are now needed.Have not yet tracked down which >> > > commit triggers the build errors. Eventually those should become >> > > local headers too.. >> > >> > I've tried building arm-soc/for-next and rmk/for-next, they are both >> > fine, just merging the two gives me the same build errors that Russell >> > saw. >> > >> > Adding plat/hardware.h in all files that break solves the problems, >> > aside from the iommu dependency for rpmsg for which Ohad has provided >> > a fix already that I should pull. >> >> Here's a patch for you to the cleanup branch to fix the hardware.h >> build errors. > > Right, with this applied, things are better: > > 1. omap3430ldp allnoconfig is the first build without warnings, congrats. > 2. omap4430sdp allnoconfig has a bunch of new section mismatch warnings, > a couple of compiler warnings, and builds: > > WARNING: arch/arm/mach-omap2/built-in.o(.text+0x183c): Section mismatch in reference from the function omap2_init_processor_devices() to the function .init.text:_init_omap_device() > The function omap2_init_processor_devices() references > the function __init _init_omap_device(). > This is often because omap2_init_processor_devices lacks a __init > annotation or the annotation of _init_omap_device is wrong. Below is a fix for this one. My compiler (gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)) was inlining these so I wasn't seeing this warning. I had to make omap2_init_processor_devices() static to make the warning appear. Anyways, fix is trivial, patch below. Kevin >From d8d4a0917c731a5fd846cd846296e2b8a5f2348d Mon Sep 17 00:00:00 2001 From: Kevin Hilman <khilman@xxxxxx> Date: Tue, 6 Mar 2012 11:38:01 -0800 Subject: [PATCH] ARM: OMAP2+: PM: fix section mismatch with omap2_init_processor_devices() Fix the below warning by making omap2_init_processor_devices() __init. It is called by an __init function and calls only __init functions, so it should also be init. WARNING: arch/arm/mach-omap2/built-in.o(.text+0x183c): Section mismatch in reference from the function omap2_init_processor_devices() to the function .init.text:_init_omap_device() The function omap2_init_processor_devices() references the function __init _init_omap_device(). This is often because omap2_init_processor_devices lacks a __init annotation or the annotation of _init_omap_device is wrong. Reported-by: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx> Signed-off-by: Kevin Hilman <khilman@xxxxxx> --- arch/arm/mach-omap2/pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 1881fe9..d00c39e 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -49,7 +49,7 @@ static int _init_omap_device(char *name) /* * Build omap_devices for processors and bus. */ -static void omap2_init_processor_devices(void) +static void __init omap2_init_processor_devices(void) { _init_omap_device("mpu"); if (omap3_has_iva()) -- 1.7.9.2 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html