]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: Silence clang warning on mismatched value/register sizes
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 24 Apr 2020 16:38:45 +0000 (17:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:31:09 +0000 (16:31 +0200)
commitd42f91ba29e3d8b76ac7136751e0e88ddca025ed
tree63b60a6bfca8fa724cc70eb22f8f389347b8dd1d
parent05a5ec4131b747b57c268cb72c6810ef6a8e653f
arm64: Silence clang warning on mismatched value/register sizes

[ Upstream commit: 27a22fbdeedd6c5c451cf5f830d51782bf50c3a2 ]

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>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/kernel/sys_compat.c