From nobody Sun Jun 14 11:27:29 2026 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93CF33E63A8; Thu, 2 Apr 2026 14:10:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.117.225.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775139022; cv=none; b=pTCfElj2glFJs+ul1UJyuCcp+51HMDk2mQTmfcz+3UX9Kw9NwuaquUdQ6YoBLjPrxSemDdjNWpKljH4Ui+S9vluoSa4bPjGyuRA3xpL7TvETO59d5n0YfW+GHQLcJV9Nu4/6/lUWHoi6XUsvU9RdM3hiTfRqFOwTH0cBYC0vGus= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775139022; c=relaxed/simple; bh=zr3uTfhPH3QtRE32YMAmmvNm7KPCBEKBLFvyenoXaxQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nx+5fUn+OOGc/wM/tmNBBo/5lVsehkRI0+0xluCodrGAmSNUuo2Etj+432FL0NOxJJ1Kjrx5gYJb3GaIsCr7T+G3+0qTBpu9lRN5+LV4qYAKSHpchHDGWb4LFOeYdmnuM0m0HLmRCz8AKkwGtBoppLD0EpOrovQ0MiWaUKU4efU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com; spf=pass smtp.mailfrom=virtuozzo.com; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b=QMHQW3mK; arc=none smtp.client-ip=130.117.225.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="QMHQW3mK" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=2kje2VmbWw88L2r+Ky1VorX3CfR9qKWy8zIczpZ54pM=; b=QMHQW3mKG9ke o65ts7NEpYedXJCHP365nvjcTI/hB7pl3IMgLWWieDccI3hItkux2/t/xkvF8/o2ycwEF8pr9qXXi Nk+n1eWFg2JqqYXscDwKQ0EOAL/NS6Hza71Va/EzQR8/u7AWhYr3xcIAiyhPxjug443yH2L64omQS 6F3QWR6rNPvFmW0hPvCQeqf6q5fJR9NMS6XP3H35EnWRKx/o5Ow00kdT7G7CcdNPF4Ffx1ghON7Rr 98umTrwCoS9cLlkL8CsdtEtQpPa24VNWQkI+rmIQhwo2gH6V5xBGF2kyz2Soi509kyQjPizQm+Kn+ M0+P2dXtJ/evu3DM/fyC/Q==; Received: from [130.117.225.5] (helo=finist-alma9.vzint.dev) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1w8IiE-003T55-1I; Thu, 02 Apr 2026 16:10:10 +0200 From: Konstantin Khorenko To: Joerg Roedel , Will Deacon , Jason Gunthorpe Cc: Robin Murphy , Kevin Tian , Peter Oberparleiter , Mikhail Zaslonko , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Konstantin Khorenko , Pavel Tikhomirov , Vasileios Almpanis , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Subject: [PATCH] iommu/generic_pt: disable GCOV for iommu_amdv1.o Date: Thu, 2 Apr 2026 17:10:12 +0300 Message-ID: <20260402141012.1437095-2-khorenko@virtuozzo.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20260402141012.1437095-1-khorenko@virtuozzo.com> References: <20260402141012.1437095-1-khorenko@virtuozzo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" With -fprofile-update=3Datomic in global CFLAGS_GCOV, GCC cannot constant-fold FIELD_PREP() expressions inside deeply inlined page table walker functions. GCC creates .constprop clones of the inline level functions, which get their own GCOV instrumentation that prevents constant evaluation of compile-time checks. __no_profile cannot be used here because the entire call chain is __always_inline functions generated by PT_MAKE_LEVELS() macro, and GCC's constprop cloning creates new profiled function bodies that bypass the attribute. Disable GCOV for iommu_amdv1.o to allow BUILD_BUG_ON / FIELD_PREP compile-time checks to succeed. Signed-off-by: Konstantin Khorenko --- drivers/iommu/generic_pt/fmt/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/generic_pt/fmt/Makefile b/drivers/iommu/generic_= pt/fmt/Makefile index 976b49ec97dc..0305f7fb9e35 100644 --- a/drivers/iommu/generic_pt/fmt/Makefile +++ b/drivers/iommu/generic_pt/fmt/Makefile @@ -1,5 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 =20 +GCOV_PROFILE_iommu_amdv1.o :=3D n + iommu_pt_fmt-$(CONFIG_IOMMU_PT_AMDV1) +=3D amdv1 iommu_pt_fmt-$(CONFIG_IOMMUFD_TEST) +=3D mock =20 --=20 2.43.5