arm64: alternative: fix build with clang integrated assembler
authorIlie Halip <ilie.halip@gmail.com>
Thu, 19 Mar 2020 21:45:28 +0000 (23:45 +0200)
committerWill Deacon <will@kernel.org>
Fri, 20 Mar 2020 10:01:28 +0000 (10:01 +0000)
commit6f5459da2b8736720afdbd67c4bd2d1edba7d0e3
tree28cb92fb834f99eeafc88ae1a57f393f7edc1eb8
parent3568b88944fef28db3ee989b957da49ffc627ede
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 <ndesaulniers@google.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Fixes: 290622efc76e ("arm64: fix "dc cvau" cache operation on errata-affected core")
Link: https://github.com/ClangBuiltLinux/linux/issues/924
Signed-off-by: Ilie Halip <ilie.halip@gmail.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/alternative.h