[PATCH] mach-pcm037_eet: Fix section mismatch for eet_init_devices()

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Fri Nov 5 10:00:44 EDT 2010


On Mon, Nov 01, 2010 at 06:00:03PM +0100, Alberto Panizzo wrote:
> This function should be marked as __init because it is used only
> in the init phase.
> 
> This fix the compiler warning:
>  LD      arch/arm/mach-mx3/built-in.o
>  WARNING: arch/arm/mach-mx3/built-in.o(.text+0x1328): Section mismatch in reference from the function eet_init_devices() to the (unknown reference) .init.rodata:(unknown)
>  The function eet_init_devices() references
>  the (unknown reference) __initconst (unknown).
>  This is often because eet_init_devices lacks a __initconst
>  annotation or the annotation of (unknown) is wrong.
> 
> Signed-off-by: Alberto Panizzo <maramaopercheseimorto at gmail.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |



More information about the linux-arm-kernel mailing list