[PATCH] ARM: protect usage of cr_alignment by #ifdef CONFIG_CPU_CP15

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Jan 16 11:54:22 EST 2012


On Mon, Jan 16, 2012 at 05:49:15PM +0100, Uwe Kleine-König wrote:
> cr_alignment is defined in arch/arm/kernel/entry-armv.S. When a build
> doesn't include this file but arch/arm/kernel/head-common.S the latter
> intruduces an invalid reference to cr_alignment.
> 
> So handle cr_alignment not being available in head-common.S and for
> completeness only define and use cr_alignment (and cr_no_alignment) when
> CONFIG_CPU_CP15 is enabled.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> ---
> Hello,
> 
> currently arch/arm/kernel/entry-armv.S is used unconditionally, but the
> Cortex-M3 port in my tree doesn't need it. So this patch fixex a build
> error only in my tree and it's not urgent to include it.

We'll wait then until we can see what you're replacing that file with.



More information about the linux-arm-kernel mailing list