Skip to content

Commit 6f5459d

Browse files
ihalipwilldeacon
authored andcommitted
arm64: alternative: fix build with clang integrated assembler
Building an arm64 defconfig with clang's integrated assembler, this error occurs: <instantiation>:2:2: error: unrecognized instruction mnemonic _ASM_EXTABLE 9999b, 9f ^ arch/arm64/mm/cache.S:50:1: note: while in macro instantiation user_alt 9f, "dc cvau, x4", "dc civac, x4", 0 ^ While GNU as seems fine with case-sensitive macro instantiations, clang doesn't, so use the actual macro name (_asm_extable) as in the rest of the file. Also checked that the generated assembly matches the GCC output. Reviewed-by: Nick Desaulniers <[email protected]> Tested-by: Nick Desaulniers <[email protected]> Fixes: 290622e ("arm64: fix "dc cvau" cache operation on errata-affected core") Link: ClangBuiltLinux#924 Signed-off-by: Ilie Halip <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent 3568b88 commit 6f5459d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/include/asm/alternative.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ alternative_endif
221221

222222
.macro user_alt, label, oldinstr, newinstr, cond
223223
9999: alternative_insn "\oldinstr", "\newinstr", \cond
224-
_ASM_EXTABLE 9999b, \label
224+
_asm_extable 9999b, \label
225225
.endm
226226

227227
/*

0 commit comments

Comments
 (0)