From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751771AbdL2SWb (ORCPT ); Fri, 29 Dec 2017 13:22:31 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:55629 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751432AbdL2SWa (ORCPT ); Fri, 29 Dec 2017 13:22:30 -0500 X-IronPort-AV: E=Sophos;i="5.45,477,1508796000"; d="scan'208";a="307166010" Date: Fri, 29 Dec 2017 19:22:29 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: =?ISO-8859-15?Q?J=E9r=E9my_Lefaure?= cc: Gilles Muller , Nicolas Palix , Masahiro Yamada , Michal Marek , cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org Subject: Re: [RESEND PATCH 1/1] Coccinelle: array_size: report even if include is missing In-Reply-To: <20171229181423.23263-1-jeremy.lefaure@lse.epita.fr> Message-ID: References: <20171229181423.23263-1-jeremy.lefaure@lse.epita.fr> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-582500453-1514571738=:21635" Content-ID: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --8323329-582500453-1514571738=:21635 Content-Type: text/plain; CHARSET=ISO-8859-15 Content-Transfer-Encoding: 8BIT Content-ID: On Fri, 29 Dec 2017, Jérémy Lefaure wrote: > Rule r does not depend on rule i (which is the include of > linux/kernel.h) so the output should not depend on i in > org and report mode. > > Signed-off-by: Jérémy Lefaure > Acked-by: Julia Lawall Re-Acked-by: Julia Lawall > --- > > scripts/coccinelle/misc/array_size.cocci | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/scripts/coccinelle/misc/array_size.cocci b/scripts/coccinelle/misc/array_size.cocci > index 6ec05710b017..09520f0941f0 100644 > --- a/scripts/coccinelle/misc/array_size.cocci > +++ b/scripts/coccinelle/misc/array_size.cocci > @@ -72,13 +72,13 @@ position p; > (sizeof(E)@p /sizeof(T)) > ) > > -@script:python depends on i&&org@ > +@script:python depends on org@ > p << r.p; > @@ > > coccilib.org.print_todo(p[0], "WARNING should use ARRAY_SIZE") > > -@script:python depends on i&&report@ > +@script:python depends on report@ > p << r.p; > @@ > > -- > 2.14.1 > > --8323329-582500453-1514571738=:21635--