From nobody Mon Feb 9 14:34:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1687168620635823.3685790990054; Mon, 19 Jun 2023 02:57:00 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.550923.860160 (Exim 4.92) (envelope-from ) id 1qBBct-00075L-0C; Mon, 19 Jun 2023 09:56:47 +0000 Received: by outflank-mailman (output) from mailman id 550923.860160; Mon, 19 Jun 2023 09:56:46 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qBBcs-00075C-SD; Mon, 19 Jun 2023 09:56:46 +0000 Received: by outflank-mailman (input) for mailman id 550923; Mon, 19 Jun 2023 09:56:45 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qBBcr-0006ke-Hp for xen-devel@lists.xenproject.org; Mon, 19 Jun 2023 09:56:45 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 98516d38-0e87-11ee-8611-37d641c3527e; Mon, 19 Jun 2023 11:56:43 +0200 (CEST) Received: from nico.bugseng.com (unknown [151.44.138.43]) by support.bugseng.com (Postfix) with ESMTPSA id 8CE034EE0741; Mon, 19 Jun 2023 11:56:41 +0200 (CEST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 98516d38-0e87-11ee-8611-37d641c3527e From: Nicola Vetrini To: xen-devel@lists.xenproject.org Cc: michal.orzel@amd.com, xenia.ragiadakou@amd.com, ayan.kumar.halder@amd.com, consulting@bugseng.com, Nicola Vetrini , Bertrand Marquis , Rahul Singh , Stefano Stabellini , Julien Grall , Volodymyr Babchuk Subject: [XEN PATCH v2 2/3] xen/drivers/passthrough/arm/smmu-v3.c: fix violations of MISRA C:2012 Rule 3.1 Date: Mon, 19 Jun 2023 11:56:12 +0200 Message-Id: <3f8d720c09d603edcc608b1b73423c35ea8f6e3f.1687167502.git.nicola.vetrini@bugseng.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1687168622602100003 Content-Type: text/plain; charset="utf-8" In the file `xen/drivers/passthrough/arm/smmu-v3.c' there are a few occurre= nces of nested '//' character sequences inside C-style comment blocks, which vio= late Rule 3.1. The patch aims to resolve those by removing the nested comments. Signed-off-by: Nicola Vetrini --- xen/drivers/passthrough/arm/smmu-v3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/drivers/passthrough/arm/smmu-v3.c b/xen/drivers/passthroug= h/arm/smmu-v3.c index 720aa69ff2..f410863e10 100644 --- a/xen/drivers/passthrough/arm/smmu-v3.c +++ b/xen/drivers/passthrough/arm/smmu-v3.c @@ -1047,10 +1047,10 @@ static int arm_smmu_atc_inv_domain(struct arm_smmu_= domain *smmu_domain, * before we read 'nr_ats_masters' in case of a concurrent call to * arm_smmu_enable_ats(): * - * // unmap() // arm_smmu_enable_ats() + * unmap() arm_smmu_enable_ats() * TLBI+SYNC atomic_inc(&nr_ats_masters); * smp_mb(); [...] - * atomic_read(&nr_ats_masters); pci_enable_ats() // writel() + * atomic_read(&nr_ats_masters); pci_enable_ats() (i.e. writel()) * * Ensures that we always see the incremented 'nr_ats_masters' count if * ATS was enabled at the PCI device before completion of the TLBI. --=20 2.34.1