From nobody Wed Feb 5 16:53:56 2025 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; dkim=pass header.i=@eurecom.fr; 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; dmarc=pass(p=none dis=none) header.from=eurecom.fr ARC-Seal: i=1; a=rsa-sha256; t=1734632093; cv=none; d=zohomail.com; s=zohoarc; b=PaNEXwag5mLp3nCIpcz3sed21xQ7EiDonluezAtUTN/g1P+JXydAwElhsAt5bCrCaMf33eU6Bdd2hSSN/5d5VPLau9xiXGs7GvSjLf2l7RIJ+qh+jZvzOM3tnaWUjqG6+6dc9zMdcoXprJwQQuXAwtrN/24IZfDRQ74/gsoM28w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1734632093; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=MJ8IAqDALOkaF2K6bbVi4cKZYqdy7uMeUgShNFELYgY=; b=GKeh6AtRc1Esk9KViExKVPVVRWFTlSgzLUZlVcfXC8gZQR52HMAEDe1OGzY6xhRxhz9YLlRYLn/BH4Pc+u074tYPQaTJcijlcd9ev1lFLYNBnHWW+UKoXwiKyxK2cVVrK9ossq6w8BM7JID+VsY3N9LkjKDepERfOu5OKJmcLLo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@eurecom.fr; 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 17346320938321018.4925160629012; Thu, 19 Dec 2024 10:14:53 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.861416.1273368 (Exim 4.92) (envelope-from ) id 1tOL2e-0006k9-Bz; Thu, 19 Dec 2024 18:14:32 +0000 Received: by outflank-mailman (output) from mailman id 861416.1273368; Thu, 19 Dec 2024 18:14:32 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tOL2e-0006k2-9L; Thu, 19 Dec 2024 18:14:32 +0000 Received: by outflank-mailman (input) for mailman id 861416; Thu, 19 Dec 2024 18:14:31 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tOL2d-0006VU-BE for xen-devel@lists.xenproject.org; Thu, 19 Dec 2024 18:14:31 +0000 Received: from smtp.eurecom.fr (smtp.eurecom.fr [193.55.113.210]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 1760b684-be35-11ef-a0d8-8be0dac302b0; Thu, 19 Dec 2024 19:14:30 +0100 (CET) Received: from waha.eurecom.fr (HELO smtps.eurecom.fr) ([10.3.2.236]) by drago1i.eurecom.fr with ESMTP; 19 Dec 2024 19:14:30 +0100 Received: from localhost.localdomain (88-183-119-157.subs.proxad.net [88.183.119.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtps.eurecom.fr (Postfix) with ESMTPSA id 26FD12350; Thu, 19 Dec 2024 19:14:30 +0100 (CET) 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: 1760b684-be35-11ef-a0d8-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=eurecom.fr; i=@eurecom.fr; q=dns/txt; s=default; t=1734632071; x=1766168071; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7LQgNvTdzlEhe7rJ7bWpvqG13yqZ7KAZK6TXTmWxmAQ=; b=VkHr3TU6raPZmR0tbZ3eLVIEztbOUPONjdbP2sEVvIJrZn+zz2aHuThp COSV8tQT/8JqLZmc/ZY4nkZgZzFPD2f9u3A4hAow5Ow6t9Ht1W1+xJVwz PdR1vBmylBFr6wgleikRU/jR91w0+jYPoinN+61h7Q85in9vWuHnDAP46 c=; X-CSE-ConnectionGUID: CFqTAF0LQ0O1tdTYlyC+ug== X-CSE-MsgGUID: LsnL8uAoT7+smUHbG5PbaA== X-IronPort-AV: E=Sophos;i="6.12,248,1728943200"; d="scan'208";a="28259976" From: Ariel Otilibili To: xen-devel@lists.xenproject.org Cc: Ariel Otilibili , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Stefano Stabellini Subject: [PATCH 1/1] xen/scripts: Fix regex syntax warnings with Python 3.12 Date: Thu, 19 Dec 2024 19:10:43 +0100 Message-ID: <20241219181352.709315-2-Ariel.Otilibili-Anieli@eurecom.fr> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241219181352.709315-1-Ariel.Otilibili-Anieli@eurecom.fr> References: <20241219181352.709315-1-Ariel.Otilibili-Anieli@eurecom.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @eurecom.fr) X-ZM-MESSAGEID: 1734632094851116600 Same fix than commit 826a9eb072 (tools: Fix regex syntax warnings with Pyth= on 3.12). It clears out the warning: ``` $ xen/scripts/xen-analysis.py xen/scripts/xen_analysis/cppcheck_analysis.py:94: SyntaxWarning: invalid es= cape sequence '\*' comment_line_starts =3D re.match('^[ \t]*/\*.*$', line) ``` The warning appears only the first time the command is run, then it disapp= ears. Fixes: 02b26c02c7 (xen/scripts: add cppcheck tool to the xen-analysis.py sc= ript) Signed-off-by: Ariel Otilibili -- Cc: Andrew Cooper Cc: Anthony PERARD Cc: Michal Orzel Cc: Jan Beulich Cc: Julien Grall Cc: "Roger Pau Monn=C3=A9" Cc: Stefano Stabellini Reviewed-by: Luca Fancellu --- xen/scripts/xen_analysis/cppcheck_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/scripts/xen_analysis/cppcheck_analysis.py b/xen/scripts/xe= n_analysis/cppcheck_analysis.py index ce7bda91b6..532a14b0ad 100644 --- a/xen/scripts/xen_analysis/cppcheck_analysis.py +++ b/xen/scripts/xen_analysis/cppcheck_analysis.py @@ -91,7 +91,7 @@ def __generate_suppression_list(out_file): line =3D header_content[tmp_line] # Matches a line with just optional spaces/tabs an= d the # start of a comment '/*' - comment_line_starts =3D re.match('^[ \t]*/\*.*$', = line) + comment_line_starts =3D re.match(r'^[ \t]*/\*.*$',= line) # Matches a line with text and the end of a commen= t '*/' comment_line_stops =3D re.match(r'^.*\*/$', line) if (not comment_section) and comment_line_starts: --=20 2.47.1