From nobody Wed Apr 1 22:01:21 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 37011391E4D; Wed, 1 Apr 2026 14:20:29 +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=1775053232; cv=none; b=uzwZtvwzeSMKc9KtdCbrsWdkw9YYl0kdLyIHJfFEmlKHm8Ub7tMZX8F4+fgKwqb5tmMxCZkEfV7bCTOcYwogNGEiRLjyf08RxaZFFgx8Ao1iKPe7MKs1KhQWIMtzgHfLcDr9iHlwZwjlszoQAIpQNBj9x0R6tQaJ7dDAE+ykUdA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775053232; c=relaxed/simple; bh=zr3uTfhPH3QtRE32YMAmmvNm7KPCBEKBLFvyenoXaxQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kPjKnYhqm00HJcp9i3UhKM5tCs0Ahj3uRwUt+DxSYwK5WmJgv26MDnq8burmsLB/ve1X72udtauN0wiue/fBzwrTGkPxPKmubaWyldN/6QchpGhIOldOX0c1H0H/qZuuJh6jcLe/nIU8Mr9MPTyktnojSVIL65qReEYhWdYnkfA= 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=JVdDV906; 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="JVdDV906" 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=JVdDV906Atr2 wh+gkAO1sw8CpGf1wOdlfn/jlpUaU4Z4X676RZhrzL53yJ/bZYr0OX1ziKSuMr4Y9thNkzM7MglMu NrKFNporCqaH6DDls/c4bUq8A1fdLYTQlRpNKxK0I7Nb7ilR96AohnEaRRHat9nnXJJciFZByOoyQ fb0uPpvm8sd6uMky5lMe1zw9Q0nbDjb/4crocpOKQBrdRUMxRY1olwbeyRcChbmA7sDrrrRpk8Oe7 wZaqxVoCtLCfxiqPCmZ4hDnzgK+gZaHjrDIbi9rFjJEoq/6eejk7QBQitRAToW33VESUzfSLELcL1 Vc8SOiFKnY2fHvKJpVjdpg==; Received: from [130.117.225.5] (helo=finist-alma9.vzint.dev) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1w7wOW-00HGGD-13; Wed, 01 Apr 2026 16:20:20 +0200 From: Konstantin Khorenko To: Peter Oberparleiter , Mikhail Zaslonko , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Cc: Steffen Klassert , Herbert Xu , Masahiro Yamada , Josh Poimboeuf , Vasileios Almpanis , Pavel Tikhomirov , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Konstantin Khorenko , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Arnd Bergmann Subject: [PATCH v3 3/4] iommu/generic_pt: disable GCOV for iommu_amdv1.o Date: Wed, 1 Apr 2026 17:20:19 +0300 Message-ID: <20260401142020.1434243-4-khorenko@virtuozzo.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20260401142020.1434243-1-khorenko@virtuozzo.com> References: <20260401142020.1434243-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