From nobody Thu Apr 2 01:54:03 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 16F233101B1 for ; Mon, 23 Feb 2026 16:26:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771864018; cv=none; b=E2DKr8r/ZfusORAPjSQXhJeZEvM+ciLo0G1nXPDR4nX4bxw7KxInAGd4wfJuWC4HnNcrLyfyuFuYUSjTmyuSeZEMa3AG74E8Moj+AidfM6ULdsmhw9lMiBZejZ06Vf/nuReuCdsK70KPd/8jMoCo3ER5clVroPXXmaNp9P01vaI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771864018; c=relaxed/simple; bh=QL2ejv2+3YvAWL5CSkNwYRn11wU4PTBvlTsWRS+pJ9w=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gHKPepbTYFE7TAhvAEDUOAFvu6jIHRR0sUiTOvBJUw8oPBDfUHogGcUfE67zICBTndxZtlSHMGJZoLpccDEocxfl6/9IFJEHfrarTDNLUkfA1USWcu86PUgr8CywlbKAqC4+LVWXyycPMPjo3TwC6IIOfxZseG2L1HfOxzDdDMw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=jDn1ajD/; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="jDn1ajD/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1771864016; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=toYc/KytBJDS3v29J7Ao5zr1crGTZ/8ZX2w/8ex74No=; b=jDn1ajD//CMzXGCgy6XSg+oaXUZI465/hqE8C/xhJlOwtKs8YtQJo0WW4DlTToT08NroTa AhiovKrtmXRTQILz5Wj6qq5QEMxgDKic7Do4G9jcocZu7Qmclrjmj1xTenotlO6m4iqum6 bmx6e1E/rOUjpm0OV2Rsqmr8cUmxkwk= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-133-ciXsZJhrOki_xPsqwN-fCA-1; Mon, 23 Feb 2026 11:26:52 -0500 X-MC-Unique: ciXsZJhrOki_xPsqwN-fCA-1 X-Mimecast-MFC-AGG-ID: ciXsZJhrOki_xPsqwN-fCA_1771864011 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D59C218003F5; Mon, 23 Feb 2026 16:26:50 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.22.88.94]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B9BC01800669; Mon, 23 Feb 2026 16:26:48 +0000 (UTC) From: Wander Lairson Costa To: Steven Rostedt , Gabriele Monaco , Nam Cao , Wander Lairson Costa , linux-trace-kernel@vger.kernel.org (open list:RUNTIME VERIFICATION (RV)), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v3 05/19] rv/rvgen: remove unnecessary semicolons Date: Mon, 23 Feb 2026 13:17:48 -0300 Message-ID: <20260223162407.147003-6-wander@redhat.com> In-Reply-To: <20260223162407.147003-1-wander@redhat.com> References: <20260223162407.147003-1-wander@redhat.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 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 Content-Type: text/plain; charset="utf-8" Remove unnecessary semicolons from Python code in the rvgen tool. Python does not require semicolons to terminate statements, and their presence goes against PEP 8 style guidelines. These semicolons were likely added out of habit from C-style languages. This cleanup improves consistency with Python coding standards and aligns with the recent improvements to remove other Python anti-patterns from the codebase. Signed-off-by: Wander Lairson Costa Reviewed-by: Nam Cao Reviewed-by: Gabriele Monaco --- tools/verification/rvgen/rvgen/dot2k.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/verification/rvgen/rvgen/dot2k.py b/tools/verification/r= vgen/rvgen/dot2k.py index e26f2b47390ab..47af9f104a829 100644 --- a/tools/verification/rvgen/rvgen/dot2k.py +++ b/tools/verification/rvgen/rvgen/dot2k.py @@ -46,14 +46,14 @@ class dot2k(Monitor, Dot2c): buff.append("\t/* XXX: validate that this event is only va= lid in the initial state */") handle =3D "handle_start_run_event" if self.monitor_type =3D=3D "per_task": - buff.append("\tstruct task_struct *p =3D /* XXX: how do I = get p? */;"); - buff.append(f"\tda_{handle}(p, {event}{self.enum_suffix});= "); + buff.append("\tstruct task_struct *p =3D /* XXX: how do I = get p? */;") + buff.append(f"\tda_{handle}(p, {event}{self.enum_suffix});= ") elif self.monitor_type =3D=3D "per_obj": buff.append("\tint id =3D /* XXX: how do I get the id? */;= ") buff.append("\tmonitor_target t =3D /* XXX: how do I get t= ? */;") buff.append(f"\tda_{handle}(id, t, {event}{self.enum_suffi= x});") else: - buff.append(f"\tda_{handle}({event}{self.enum_suffix});"); + buff.append(f"\tda_{handle}({event}{self.enum_suffix});") buff.append("}") buff.append("") return '\n'.join(buff) --=20 2.53.0