From: Arnd Bergmann Date: Mon, 22 Jul 2019 14:51:50 +0000 (+0200) Subject: ARM: davinci: fix sleep.S build error on ARMv4 X-Git-Tag: v5.15~5815^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d64b212ea960db4276a1d8372bd98cb861dfcbb0;p=platform%2Fkernel%2Flinux-starfive.git ARM: davinci: fix sleep.S build error on ARMv4 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 Signed-off-by: Arnd Bergmann Signed-off-by: Olof Johansson --- diff --git a/arch/arm/mach-davinci/sleep.S b/arch/arm/mach-davinci/sleep.S index 05d03f0..71262dc 100644 --- a/arch/arm/mach-davinci/sleep.S +++ b/arch/arm/mach-davinci/sleep.S @@ -24,6 +24,7 @@ #define DEEPSLEEP_SLEEPENABLE_BIT BIT(31) .text + .arch armv5te /* * Move DaVinci into deep sleep state *