]> www.infradead.org Git - users/jedix/linux-maple.git/commit
LoongArch: Handle KCOV __init vs inline mismatches
authorKees Cook <kees@kernel.org>
Thu, 26 Jun 2025 12:07:18 +0000 (20:07 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 26 Jun 2025 12:07:18 +0000 (20:07 +0800)
commita0137c9048252ea965a0436895c77d1c917dfe2a
tree35bac11d8a932c6bf642c0e992cc395fa96db38b
parent39503fc84b4ea94f2bedca481de5e225e0df729d
LoongArch: Handle KCOV __init vs inline mismatches

When the KCOV is enabled all functions get instrumented, unless
the __no_sanitize_coverage attribute is used. To prepare for
__no_sanitize_coverage being applied to __init functions, we have to
handle differences in how GCC's inline optimizations get resolved.
For LoongArch this exposed several places where __init annotations
were missing but ended up being "accidentally correct". So fix these
cases.

Signed-off-by: Kees Cook <kees@kernel.org>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/smp.h
arch/loongarch/kernel/time.c
arch/loongarch/mm/ioremap.c