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 mips this requires adding the __init annotation on
init_mips_clocksource().
Signed-off-by: Kees Cook <kees@kernel.org>
---
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: <redacted>
---
arch/mips/include/asm/time.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Huacai Chen <redacted>
On Fri, Jul 18, 2025 at 7:26 AM Kees Cook [off-list ref] wrote:
quoted hunk
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 mips this requires adding the __init annotation on
init_mips_clocksource().
Signed-off-by: Kees Cook <kees@kernel.org>
---
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: <redacted>
---
arch/mips/include/asm/time.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)