arm64: include asm/assembler.h in entry-ftrace.S
authorArnd Bergmann <arnd@arndb.de>
Tue, 14 Feb 2017 21:32:58 +0000 (22:32 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 15 Feb 2017 11:34:25 +0000 (11:34 +0000)
In a randconfig build I ran into this build error:

arch/arm64/kernel/entry-ftrace.S: Assembler messages:
arch/arm64/kernel/entry-ftrace.S:101: Error: unknown mnemonic `ldr_l' -- `ldr_l x2,ftrace_trace_function'

The macro is defined in asm/assembler.h, so we should include that file.

Fixes: 829d2bd13392 ("arm64: entry-ftrace.S: avoid open-coded {adr,ldr}_l")
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/entry-ftrace.S

index 8f1905b795f348eb4ae977039d31c229c4bc0a1f..e1be42e11ff5bc79435d540bc9846f2efea58b45 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <linux/linkage.h>
+#include <asm/assembler.h>
 #include <asm/ftrace.h>
 #include <asm/insn.h>