[Devel] [PATCH hci-8.1 2/2] ms/kbuild: move GCOV flags to scripts/Makefile.gcov

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Mon Oct 19 21:30:12 MSK 2026


>  * split the CFLAGS_GCOV block out of the top-level Makefile into
>    scripts/Makefile.gcov
>  * include it via include-$(CONFIG_GCOV_KERNEL) like neighbour
>    KASAN/KCOV/UBSAN makefiles do
>  * keep the include before scripts/Makefile.gcc-plugins: the try-run
>    must not get -fplugin= options, plugins do not exist on clean builds
> 
> CFLAGS_GCOV is no longer defined when CONFIG_GCOV_KERNEL is off:
>  * its user in scripts/Makefile.lib is guarded by the CONFIG_GCOV_KERNEL
>  * in i915/xe header an empty value is harmless
> 
> The try-run compiler invocations also stop running on builds without
> GCOV.
> 
> Link: https://lore.kernel.org/20261001-b4-prep-gcov-v1-2-794792e06f24@virtuozzo.com
> [ ... ]
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-148131
> Feature: fix ms/gcov
> Assisted-by: LLM
> Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261019-b4-prep-khorenko-vstor-148131-gcov-followups-v1-0-2932ec685608@virtuozzo.com?part=2




More information about the Devel mailing list