]> www.infradead.org Git - users/dwmw2/linux.git/commit
ARM: davinci: fix sleep.S build error on ARMv4
authorArnd Bergmann <arnd@arndb.de>
Mon, 22 Jul 2019 14:51:50 +0000 (16:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2019 08:11:06 +0000 (10:11 +0200)
commitdb3e42d4a55164ac1cc472011d45d07655a6c00d
treed50e15ff7333d4249acf5fd57cd958947316ea88
parentf20e1e83bc32a75c48df3a382d3ab6b3429467bb
ARM: davinci: fix sleep.S build error on ARMv4

[ 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@arndb.de
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-davinci/sleep.S