Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp598087pxk; Thu, 24 Sep 2020 13:22:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/Y1HuPLcOzRn26bsMaGGcsYsAGSDFc9SGjY3a3iw/ebVHOPwYjGBep5BTStH0Vm4njs5A X-Received: by 2002:a17:907:119d:: with SMTP id uz29mr350251ejb.289.1600978959089; Thu, 24 Sep 2020 13:22:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600978959; cv=none; d=google.com; s=arc-20160816; b=LU3XNZUiXydnIfrlcFQ9zMB2m1wA6ovSmM/NIyMp0v1VB/XV2366yj6adgJuAumRkB 2j05t3zpM1F2Z2FXIQlLJmDsIiFNbftQhEs6pQVolR1xRhD5mTVaWcCO4Yev7i3WLEzQ Upq0VXwaaYDoFAH/Qu9yVBTGny5g6ybkQavYBMi19zc6AEMj0hNQqefbP9TbkBLuZcj5 Hi+THfgbgDPTWpEx88yhvhVE+xv0jMxiYq3K2CjFP9WdYqcnSY5asJ7x8+D/kX2XZLXE UKWrSykT/yZFxNLXSrkUkIa/glNKPkhaQovidQ3xIN5Qma3T9pKN3xUhkAg+5HLB3+KE l6lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=K3Ao4b3S2fuWHiT8hpHEfpFg0aMIND0J6gnDyFzzIBY=; b=uHhcZk4axD6bCZ5RNjMV8LpZEcmpUIjnbbEfmQSyK4vxqwbXYcR3KP0DsCP2IB5vvd q9Uck3C3C7ErmR/dyr6/F0qbCRdYcp9f19ZExAwcvvS/FWVMUX22UykwIVHnGo9JoSAV 1sUs//JbGWxMXmoGHcsjDh3nF4ZXw125BJF5LX6wwGUQT96LwxznVMp3RSjqp3pDFXCu 1jxrnwQ9wi7jyNFxAVAXE8KMWBfYkYh+fplstEipndGdTL7hhvULPhaPKPlJaDjfQOsp +uMXSc7fE4LxXK4485f+M6OwE9uv37oLMPF/ckUvk4WgxvpHkzAEtRQOio46CkxrhYKq HLVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=GWue+NIu; dkim=neutral (no key) header.i=@linutronix.de header.b=hlFfk2k9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si421123eja.565.2020.09.24.13.22.14; Thu, 24 Sep 2020 13:22:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=GWue+NIu; dkim=neutral (no key) header.i=@linutronix.de header.b=hlFfk2k9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726244AbgIXUTF (ORCPT + 99 others); Thu, 24 Sep 2020 16:19:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725208AbgIXUTF (ORCPT ); Thu, 24 Sep 2020 16:19:05 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25629C0613CE; Thu, 24 Sep 2020 13:19:05 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1600978743; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=K3Ao4b3S2fuWHiT8hpHEfpFg0aMIND0J6gnDyFzzIBY=; b=GWue+NIuBy3soO1ehVcKQ0rhV7iiszDX+YP1KJTAEHVSQgmEr0exmzz2J4MqZGx4Tot8v8 8C99zKaMGY8rEap5ElRRH/06ZSQjK6d6vwbjOJqJfeehwbYfmX7IpWovnqQcgtcbvYgKPg 2k6LtR9J88o8a248c1eTOqHQxUs1RZEC6bGhNNrfLzWQ9Kb25k8rCNLH5rZ0/DxA/klLMX dq38wVBZLcSs/SJ60pToFbYt22R/DQI37BaLdTWyJrdrXTUiUf9BTY3WEruM2pFuU4d2D9 4MZLzbhGq3AIgEh22Y3zH3CDM0C2rd84Obf+bamKY7UiKUjRnb5PV+TvZ0ZhEg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1600978743; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=K3Ao4b3S2fuWHiT8hpHEfpFg0aMIND0J6gnDyFzzIBY=; b=hlFfk2k9cjx+noi/lmUByUkYc4oJUkZkwXH/rwvb2cEdWBlfBMkm9XXGEhDEwmjZrwUf/E JrImDs46jCfPfLCQ== To: Julia Lawall , Joe Perches Cc: Valdis =?utf-8?Q?Kl=C4=93tnieks?= , kernel-janitors , kernelnewbies , linux-kernel-mentees@lists.linuxfoundation.org, Andrew Morton , cocci , Giuseppe Scrivano , LKML , Andy Whitcroft Subject: Re: [Cocci] coccinelle: Convert comma to semicolons (was Re: [PATCH] checkpatch: Add test for comma use that should be semicolon) In-Reply-To: References: <20200818184107.f8af232fb58b17160c570874@linux-foundation.org> <3bf27caf462007dfa75647b040ab3191374a59de.camel@perches.com> <744af177c09f8ce22c99d6e1df458bced558518b.camel@perches.com> <162653.1598067338@turing-police> <3836b482434bd0b9a609959d3696cc6113a93f2f.camel@perches.com> Date: Thu, 24 Sep 2020 22:19:03 +0200 Message-ID: <87tuvn6i88.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 22 2020 at 09:07, Julia Lawall wrote: > On Fri, 21 Aug 2020, Joe Perches wrote: >> True enough for a general statement, though the coccinelle >> script Julia provided does not change a single instance of >> for loop expressions with commas. >> >> As far as I can tell, no logic defect is introduced by the >> script at all. > > The script has a rule to ensure that what is changed is part of a top > level statement that has the form e1, e2;. I put that in to avoid > transforming cases where the comma is the body of a macro, but it protects > against for loop headers as well. Right. I went through the lot and did not find something dodgy. Except for two hunks this still applies. Can someone please send a proper patch with changelog/SOB etc. for this? And of course that script really wants to be part of the kernel cocci checks to catch further instances. Thanks, tglx