Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2195050imu; Sat, 5 Jan 2019 17:47:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN6h608Qbk8uPV8TGBjANZLio9UXTMbe6dkvotoKrtnL/50WlesorIXgIh4Eq9bUxdWi8Vur X-Received: by 2002:a63:4665:: with SMTP id v37mr6533751pgk.425.1546739266692; Sat, 05 Jan 2019 17:47:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546739266; cv=none; d=google.com; s=arc-20160816; b=NtD08RVJ+nREeOh8X/u0WtfthvsMcceTeTN9lITG6uc8C16oySo9+Rb/faaoLcGUNr lSNbJ+7sArddJO+Twy/PVWdkm2MZR8whEaD459OKsOEvYyx4YXltZOfOrtKuRwdHGB7n NVvsvn4ajDGtYy/3vQ15FKZhPRxlqMbo2F+AIXco0wVo+BHm9hHEh6cZex2JaRD9XYdA HG1zib362K3L+DMUBTedYFzN+gqMMbKq0Se5zVOYMRbT9io+DLcuFjIKfewiTWh52B5a vyK9XC0vyZwQDR3xskiMpsiikCguW/FvZ94k9ulpHYAL3NO6RyrncemfW/L5941wWJ0k 1aFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=gWJAl3gourNSTPYpOk0Vo+A8mut8xLJhVB0tkrVLYPg=; b=CAyQQR6ZQwNN9uP4H4o4qkobiFYiVtNKKLAmQrl5AfazlfefbpOoABvTnWqSqsw3aE nPl3BX+9iTkBxProyC+xnbjDr2HtCXgJ3EWiQIFQwTQ06qT9CzEir1qxG30THMUB97Ju ooo/Zt22dIkuQoGjsyHUOh0saIJUxDO7bA7A7uKmQsDyORrvawgY0eGU6/LMks2pOBsd O79yu+/NT6OfKvuMF6ZzKMpNUUHBvPs2Azxj8J+cAE1nHpi2WP9SqY7RFUBqQxJSB3fK x7ErO3FXkUQclJ3YbXhwz2OmnXyLWPx7MvQdZAIBE6l87uLrVHD1mwi6oJWmJxWu5qoY ZtBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=0RWYh0N1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si4012490pld.79.2019.01.05.17.47.06; Sat, 05 Jan 2019 17:47:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=0RWYh0N1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726388AbfAFBlv (ORCPT + 99 others); Sat, 5 Jan 2019 20:41:51 -0500 Received: from conssluserg-03.nifty.com ([210.131.2.82]:28596 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726372AbfAFBlu (ORCPT ); Sat, 5 Jan 2019 20:41:50 -0500 Received: from mail-vs1-f54.google.com (mail-vs1-f54.google.com [209.85.217.54]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x061fgoA003415; Sun, 6 Jan 2019 10:41:43 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x061fgoA003415 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1546738903; bh=gWJAl3gourNSTPYpOk0Vo+A8mut8xLJhVB0tkrVLYPg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=0RWYh0N1ePVEnkkKud+gwHvPM36jKwK563sxwFm39ZpaRObJedSupfLXvSGpvH0th Ig6ThATJnxYxT7z/AFM2m1tcyE1mElsCozgPX/ElpIRdCIbWZHmQxtI0PnPaYyqC6r cv3u0Lf0iRcVBHgtQHUbkctD3DnKhHvv8Wng8OMnxPxTjeKjrOy5QV5ZVTxzFtWT0Y i0FmiMmjFQho/LFdLlz5pAtTz1YuDe0wmBprvvQfRc/6oY3UAolge8cEQYR1lhH9yy 0r17gk7y3Jt5s3N8lHzib0HUL9k/+xdYHffmqsZ85CP6fF/1kfuvvcJx7YaIApJgKz fIduBr4/sxrBQ== X-Nifty-SrcIP: [209.85.217.54] Received: by mail-vs1-f54.google.com with SMTP id x64so24828913vsa.5; Sat, 05 Jan 2019 17:41:43 -0800 (PST) X-Gm-Message-State: AJcUukeRdYy4NZEMgy+zC4LvMvKHE03SrK6tljhCkpYP6OiDdYJMIXxi SfOB2Vu+JbXANTS3klBqOzUorLgyG5XdvtJKaTo= X-Received: by 2002:a67:385a:: with SMTP id f87mr23102960vsa.179.1546738902123; Sat, 05 Jan 2019 17:41:42 -0800 (PST) MIME-Version: 1.0 References: <1546008541-3175-1-git-send-email-Julia.Lawall@lip6.fr> In-Reply-To: <1546008541-3175-1-git-send-email-Julia.Lawall@lip6.fr> From: Masahiro Yamada Date: Sun, 6 Jan 2019 10:41:06 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] scripts/coccinelle: check for redeclaration To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, Gilles Muller , Nicolas Palix , Michal Marek , cocci@systeme.lip6.fr, Linux Kernel Mailing List , "Jason A . Donenfeld" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 29, 2018 at 10:32 AM Julia Lawall wrote: > > Avoid reporting on the use of an iterator index variable when > the variable is redeclared. > > Signed-off-by: Julia Lawall > > --- Applied to linux-kbuild. Thanks! > scripts/coccinelle/iterators/use_after_iter.cocci | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/scripts/coccinelle/iterators/use_after_iter.cocci b/scripts/coccinelle/iterators/use_after_iter.cocci > index ce8cc9c..66a1140 100644 > --- a/scripts/coccinelle/iterators/use_after_iter.cocci > +++ b/scripts/coccinelle/iterators/use_after_iter.cocci > @@ -35,6 +35,7 @@ iterator name hlist_for_each_entry_from; > iterator name hlist_for_each_entry_safe; > statement S; > position p1,p2; > +type T; > @@ > > ( > @@ -125,6 +126,8 @@ sizeof(<+...c...+>) > | > &c->member > | > +T c; > +| > c = E > | > *c@p2 > -- Best Regards Masahiro Yamada