Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2195051imu; Sat, 5 Jan 2019 17:47:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN7x6XLHPCQCBYWc3/rmkLpJ0AcrSg7E+dSjyzE1bhKJniKGDjymuTMK+A4mpeDGUIzkiDKN X-Received: by 2002:a63:1c61:: with SMTP id c33mr52323317pgm.354.1546739266696; 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=iFsSv4mWIwKvxxsfsjRGK5MKAXQxPW0MyJ0+YrHN6SFAu4SBLdKPBqRuMxej6RLMkV GlMaKyTMeKBqGCAHPEachmM/S16HzzzY9h/+YSRcbRcrfTnuFvO+nE+cs7mybgQGUQEU rxEQhCNjSrNtSsJLGB52CLBBinFeRNAsjIGWWlzsC/2iZKahDc1ZkMA8Bpk2RXiy08HG ys5VndGj6qUgrconv0GnuvaVP0ZJJCWUv/74HuHePUzpxFeicSZKRcvpVhO8NLGrOFIE DKTPlFAnFYznkbVhkGLZjJPX16MkOd1HQNNnfVYSotnHlUkdgqOC10mDbvVyOF8z0rXi mRmw== 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=xFudEcZwUcMHAVkTucvrEEMuZDp9b36sey9gk7TgVrk=; b=OkU1pxAUjjx+SPPIZbIUPXZKLc3w1bXkeWKaTX85GEXIxCvL3EZCNJ5CEQtWCcW3wG K9SZlqWQ97QG5Hlt8EsQXz7bEWT8ua1FxY9cIN4TYa3uSglghCqm04Tzwf9u900iH7WP c588PiKkvIpslgoGyUjx5jYFtgiTHOCfw1tU++lokl4HWE+iw6rWzTMdvm/VPKwo1415 8UfgW7toq+P1bScSUF32QOIwXwWO7XTYrKzEi3B590+iUBcOVtxiBnmRj0wbpco28sdK lbqJnjRGJ/tpwxMN+0qfc/P5+cj06TQjPgYd2j7T498ISHkk7lHyBgggp+CliSWJg6Kw 8Fig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=bIR5BWhn; 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 v32si8223577plb.369.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=bIR5BWhn; 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 S1726412AbfAFBmF (ORCPT + 99 others); Sat, 5 Jan 2019 20:42:05 -0500 Received: from conssluserg-02.nifty.com ([210.131.2.81]:44491 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726395AbfAFBmE (ORCPT ); Sat, 5 Jan 2019 20:42:04 -0500 Received: from mail-vk1-f179.google.com (mail-vk1-f179.google.com [209.85.221.179]) (authenticated) by conssluserg-02.nifty.com with ESMTP id x061ftRi010911; Sun, 6 Jan 2019 10:41:55 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com x061ftRi010911 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1546738916; bh=xFudEcZwUcMHAVkTucvrEEMuZDp9b36sey9gk7TgVrk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=bIR5BWhnrlpKxud+OqwcJ/h3RsTbrI2UKRVosLCvdwVSBbPtG28ijWb8ufoYpod6G 6QOGDzYTei2fnljRLS1r4AW9S3pG6MI3rasyW2/vBUmSCbqrCFL2WAX2EpWO5vL8GU VH4JE7xnufLh+/iPBFfTOqA1YcWg4YRSkTeyt5TmoyujqawW1+n6OFG5UrlSL85KEb f1ltBH0Ps4/EQxv00f4hK0J4bAJDd8CO8XS/sUyaS+GRXiBUbHnUB6FNKl76VN9U71 99uC5hW7F5Cl5L3nsyLtyuOJemVUIPw5ki7ZrBBIyM5yBUgxlFo10dccsKC9j5GFRz ML/Q4u0iWzCEg== X-Nifty-SrcIP: [209.85.221.179] Received: by mail-vk1-f179.google.com with SMTP id d201so8728337vka.0; Sat, 05 Jan 2019 17:41:55 -0800 (PST) X-Gm-Message-State: AJcUukdGj7fo/1WMZxD0AP2/GT5cpV/+rUmL52sgn/qzz3oy8mcAJ++c j46OXDusbR4894NbD2vA73AiSv/eO884/pism6c= X-Received: by 2002:a1f:9350:: with SMTP id v77mr19667050vkd.64.1546738914555; Sat, 05 Jan 2019 17:41:54 -0800 (PST) MIME-Version: 1.0 References: <1546064056-15569-1-git-send-email-Julia.Lawall@lip6.fr> In-Reply-To: <1546064056-15569-1-git-send-email-Julia.Lawall@lip6.fr> From: Masahiro Yamada Date: Sun, 6 Jan 2019 10:41:18 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] scripts: coccinelle: boolinit: drop warnings on named constants To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, Gilles Muller , Nicolas Palix , Michal Marek , cocci@systeme.lip6.fr, Linux Kernel Mailing List , Pierre-Louis Bossart 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:14 PM Julia Lawall wrote: > > Coccinelle doesn't always have access to the values of named > (#define) constants, and they may likely often be bound to true > and false values anyway, resulting in false positives. So stop > warning about them. > > Signed-off-by: Julia Lawall Applied to linux-kbuild. Thanks! > --- > scripts/coccinelle/misc/boolinit.cocci | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/scripts/coccinelle/misc/boolinit.cocci b/scripts/coccinelle/misc/boolinit.cocci > index b0584a3..aabb581 100644 > --- a/scripts/coccinelle/misc/boolinit.cocci > +++ b/scripts/coccinelle/misc/boolinit.cocci > @@ -136,9 +136,14 @@ position p1; > @r4 depends on !patch@ > bool b; > position p2; > +identifier i; > constant c != {0,1}; > @@ > +( > + b = i > +| > *b@p2 = c > +) > > @script:python depends on org@ > p << r1.p; > -- Best Regards Masahiro Yamada