arm64: Silence clang warning on mismatched value/register sizes
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 28 Oct 2019 09:08:34 +0000 (09:08 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 28 Oct 2019 09:13:21 +0000 (09:13 +0000)
commit27a22fbdeedd6c5c451cf5f830d51782bf50c3a2
tree6cd5f814cce7fc2dc9a65d9b465d693f54aee15d
parent222fc0c8503d98cec3cb2bac2780cdd21a6e31c0
arm64: Silence clang warning on mismatched value/register sizes

Clang reports a warning on the __tlbi(aside1is, 0) macro expansion since
the value size does not match the register size specified in the inline
asm. Construct the ASID value using the __TLBI_VADDR() macro.

Fixes: 222fc0c8503d ("arm64: compat: Workaround Neoverse-N1 #1542419 for compat user-space")
Reported-by: Nathan Chancellor <natechancellor@gmail.com>
Cc: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/sys_compat.c