[PATCH 0/1] iommu/generic_pt: disable GCOV for iommu_amdv1.o
From: Konstantin Khorenko
Date: Thu Apr 02 2026 - 10:11:12 EST
This patch fixes a build failure in drivers/iommu/generic_pt/fmt/iommu_amdv1.o
when -fprofile-update=atomic is added to global CFLAGS_GCOV.
This is part of a larger effort to add -fprofile-update=atomic to
global CFLAGS_GCOV to fix GCOV counter races that cause crashes on SMP
(posted earlier as a combined series):
https://lore.kernel.org/lkml/20260401142020.1434243-1-khorenko@xxxxxxxxxxxxx/T/#t
That combined series was split per subsystem as requested by reviewers.
The companion patches are:
- net: fix skb_ext BUILD_BUG_ON failures (sent to netdev)
- gcov: add -fprofile-update=atomic globally (sent to gcov/kbuild
maintainers, depends on this patch and the net patches)
FIELD_PREP() compile-time checks fail because the entire call chain is
__always_inline functions generated by PT_MAKE_LEVELS(), and GCC's
.constprop cloning creates new profiled function bodies that bypass
__no_profile. Disabling GCOV for the file is the only viable fix.
Konstantin Khorenko (1):
iommu/generic_pt: disable GCOV for iommu_amdv1.o
drivers/iommu/generic_pt/fmt/Makefile | 2 ++
1 file changed, 2 insertions(+)
--
2.43.5