Re: [PATCH 0/2] kbuild: GCOV cleanups following the prefer-atomic fix
From: Peter Oberparleiter
Date: Tue Oct 06 2026 - 04:25:10 EST
On 01.10.2026 18:57, Konstantin Khorenko wrote:
> Two cleanups Peter Oberparleiter suggested while reviewing
> commit 56cb9b7d96b2 ("gcov: use atomic counter updates to fix
> concurrent access crashes"):
>
> https://lore.kernel.org/e1b6e768-51af-468b-a729-0ed3fceef2f1@xxxxxxxxxxxxx
>
> Patch 1 makes the prefer-atomic try-run test reuse $(CFLAGS_GCOV)
> instead of spelling the flags out again, so the test compiles with the
> exact GCOV flags, -fno-tree-loop-im included.
>
> Patch 2 moves the CFLAGS_GCOV block into scripts/Makefile.gcov,
> included via include-$(CONFIG_GCOV_KERNEL) like the other
> instrumentation makefiles. The try-run also stops running on builds
> without GCOV.
>
> Signed-off-by: Konstantin Khorenko <khorenko@xxxxxxxxxxxxx>
Looks great, thanks for following up on this!
For both patches:
Reviewed-by: Peter Oberparleiter <oberpar@xxxxxxxxxxxxx>
Tested-by: Peter Oberparleiter <oberpar@xxxxxxxxxxxxx>
--
Peter Oberparleiter
Linux on IBM Z Development - IBM Germany R&D