LoongArch: Don't inline kasan_mem_to_shadow()/kasan_shadow_to_mem()
authorHuacai Chen <chenhuacai@loongson.cn>
Wed, 20 Sep 2023 06:26:29 +0000 (14:26 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 20 Sep 2023 06:26:29 +0000 (14:26 +0800)
commit99e5a2472a506d9dc6fe54863bf6c5b43bc25a97
treea03b6bfc7ffc784f17822eea3425e0a424ebc0f3
parent2a86f1b56a30e242caf7ee1268af68f4f49ce847
LoongArch: Don't inline kasan_mem_to_shadow()/kasan_shadow_to_mem()

As Linus suggested, kasan_mem_to_shadow()/kasan_shadow_to_mem() are not
performance-critical and too big to inline. This is simply wrong so just
define them out-of-line.

If they really need to be inlined in future, such as the objtool / SMAP
issue for X86, we should mark them __always_inline.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/kasan.h
arch/loongarch/mm/kasan_init.c