]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64: mm: Re-implement the __flush_tlb_range_op macro in C
authorRyan Roberts <ryan.roberts@arm.com>
Mon, 2 Mar 2026 13:55:53 +0000 (13:55 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 13 Mar 2026 17:23:04 +0000 (17:23 +0000)
commit5e63b73f3deb1e0f7e2234f7f6743e323b60daf8
tree73d4d7d212b5c174816dc2b91831d2a80b8ad51f
parentd4b048ca145fd31a2c6f77ae4db49e51bdec58ac
arm64: mm: Re-implement the __flush_tlb_range_op macro in C

The __flush_tlb_range_op() macro is horrible and has been a previous
source of bugs thanks to multiple expansions of its arguments (see
commit f7edb07ad7c6 ("Fix mmu notifiers for range-based invalidates")).

Rewrite the thing in C.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Co-developed-by: Will Deacon <will@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/tlbflush.h