]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/mm: Hide mm_free_global_asid() definition under CONFIG_BROADCAST_TLB_FLUSH
authorHou Wenlong <houwenlong.hwl@antgroup.com>
Thu, 15 Jan 2026 03:38:34 +0000 (11:38 +0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 16 Jan 2026 21:16:32 +0000 (22:16 +0100)
commit954fc7ac15c18fc21c4a423e542f6df5dc727cad
tree22398d56c4d86db49bd7957ecf653e4c28c2e688
parent8a4e92b3260ae7664d0531e1b42c38d336e7717a
x86/mm: Hide mm_free_global_asid() definition under CONFIG_BROADCAST_TLB_FLUSH

When CONFIG_BROADCAST_TLB_FLUSH is not enabled, mm_free_global_asid() remains
a globally visible symbol and generates a useless function call to it in
destroy_context(). Therefore, hide the mm_free_global_asid() definition under
CONFIG_BROADCAST_TLB_FLUSH and provide a static inline empty version when it
is not enabled to remove the function call.

Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Rik van Riel <riel@surriel.com>
Link: https://patch.msgid.link/b262a8ec8076fb26bb692aaf113848b1e6f40e40.1768448079.git.houwenlong.hwl@antgroup.com
arch/x86/include/asm/mmu_context.h
arch/x86/include/asm/tlbflush.h
arch/x86/mm/tlb.c