Commit 2424fe1c authored by Kees Cook's avatar Kees Cook
Browse files

arm: Handle KCOV __init vs inline mismatches



When 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
arm this exposed several places where __init annotations were missing
but ended up being "accidentally correct". Fix these cases and force
several functions to be inline with __always_inline.

Acked-by: default avatarNishanth Menon <nm@ti.com>
Acked-by: default avatarLee Jones <lee@kernel.org>
Reviewed-by: default avatarNishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/20250717232519.2984886-5-kees@kernel.org


Signed-off-by: default avatarKees Cook <kees@kernel.org>
parent d01daf9d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment