Skip to content

Commit 27a22fb

Browse files
committed
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: 222fc0c ("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>
1 parent 222fc0c commit 27a22fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/arm64/kernel/sys_compat.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ __do_compat_cache_op(unsigned long start, unsigned long end)
3737
* The workaround requires an inner-shareable tlbi.
3838
* We pick the reserved-ASID to minimise the impact.
3939
*/
40-
__tlbi(aside1is, 0);
40+
__tlbi(aside1is, __TLBI_VADDR(0, 0));
4141
dsb(ish);
4242
}
4343

0 commit comments

Comments
 (0)