Re: [PATCH AUTOSEL 4.4 13/17] ARM: davinci: fix sleep.S build error on ARMv4

From: Arnd Bergmann
Date: Fri Aug 02 2019 - 15:02:26 EST


On Fri, Aug 2, 2019 at 3:27 PM Sasha Levin <sashal@xxxxxxxxxx> wrote:
>
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> [ Upstream commit d64b212ea960db4276a1d8372bd98cb861dfcbb0 ]
>
> When building a multiplatform kernel that includes armv4 support,
> the default target CPU does not support the blx instruction,
> which leads to a build failure:
>
> arch/arm/mach-davinci/sleep.S: Assembler messages:
> arch/arm/mach-davinci/sleep.S:56: Error: selected processor does not support `blx ip' in ARM mode
>
> Add a .arch statement in the sources to make this file build.
>
> Link: https://lore.kernel.org/r/20190722145211.1154785-1-arnd@xxxxxxxx
> Acked-by: Sekhar Nori <nsekhar@xxxxxx>
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
> Signed-off-by: Olof Johansson <olof@xxxxxxxxx>
> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

This patch is actually never needed on any stable kernels, but it is also
harmless.

Arnd