Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2784011ybg; Thu, 24 Oct 2019 15:18:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHZ0yXPPKCC/QAemSj0QFvXw7Np52uGBYGQxtLBcXXQ/fXVFQWjjO1PQPRcUV3HrK/gA4R X-Received: by 2002:a50:fa0d:: with SMTP id b13mr136442edq.101.1571955535065; Thu, 24 Oct 2019 15:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571955535; cv=none; d=google.com; s=arc-20160816; b=oseqnY1pZUpnWVjRZdKOumlCDI0P2KccVxXj+lkzLiYziBD7pybwusA6+wM6Rm4JDf pNGem32RmNSDMSGvvXjCYMyRstTD1TKnAMsGhf2sDgVhprvuTdwDBAuD3mN2LAWKyV1U 2qfPxWSocqhysH6WUU/6zWgFOFX3pgHgHZzlGDGF13h2mXbK5KicT6IomgP/thOS/QwO NfdR88CUWrvaDe/B4Ly7ChlenPKpPHkcNYK0AfeZumvrRM7ccaNIGrbrEn/HTQi5Fi8F DkGdEVz5WNueB51ALJIQN8nr0vqbpX1mCJp2pz3T66LsPSfBAyFANEdUKfbmdG+WF8hw KcZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=KdiJQzh/70ejfB67USsMLXPTMS7hntk+coV5bAF+gMk=; b=mfIiEjZd4Sql1KQB1SxH2HYkXra5wso59p1zgWOdUaf5mrEWNyFbZ1bwSe13wO+eZ9 MdpNuESbXxPy9LixwXVjZfN9u78gvJBH1ly/b0DMeCF8VuQeA3E77RjxuXoouc135mNE Scrd2MPoCWuwiv2YN8oeqAbZ5L6UHLf1VoJYtpPpYIr9/nCsqQ+fg60siHp2Lafxp+5F j2/xz7K4lDH1EK+d5xE/0rZmkoVjXWDYTTMTisgU2Lb1f/hIw0oaAm/1W8UuucUd7RKh wwrNO63NlolptZN/2MAAgrt9N8uYxa0CAHEZqLUpyZOmjdNEVkfpAOwpf9OZPpprq46B smMQ== ARC-Authentication-Results: i=1; mx.google.com; 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 w14si65980ejv.112.2019.10.24.15.18.31; Thu, 24 Oct 2019 15:18:55 -0700 (PDT) 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; 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 S2437725AbfJXGUA (ORCPT + 99 others); Thu, 24 Oct 2019 02:20:00 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:33510 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403986AbfJXGUA (ORCPT ); Thu, 24 Oct 2019 02:20:00 -0400 X-IronPort-AV: E=Sophos;i="5.68,223,1569276000"; d="scan'208";a="407883262" Received: from ip-121.net-89-2-166.rev.numericable.fr (HELO hadrien) ([89.2.166.121]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Oct 2019 08:19:58 +0200 Date: Thu, 24 Oct 2019 08:19:57 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: zhongshiqi cc: Gilles Muller , nicolas.palix@imag.fr, michal.lkml@markovi.net, cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org, xue.zhihong@zte.com.cn, wang.yi59@zte.com.cn, cheng.shengyu@zte.com.cn Subject: Re: [PATCH v2] coccicheck:support $COCCI being defined as a directory In-Reply-To: <1571897060-32374-1-git-send-email-zhong.shiqi@zte.com.cn> Message-ID: References: <1571897060-32374-1-git-send-email-zhong.shiqi@zte.com.cn> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-2055800385-1571897998=:2771" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-2055800385-1571897998=:2771 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Thu, 24 Oct 2019, zhongshiqi wrote: > Put a modification in scripts/coccicheck which supports users in > configuring COCCI parameter as a directory to traverse files in > directory whose next level directory contains rule files with Suffix of > cocci. While I thought the original was fine, if we are going to strive for perfection, there are some things that could be changed. First there should be a space in the subject line after the : Second the commit log could be more concise as: Allow defining COCCI as a directory that contains .cocci files. In general, at least in simple cases, it is not necessary to mention the name of the file you are modifying in the comit log, because one can see that just below from looking at the diffstat and the patch. thanks, julia > > Signed-off-by: zhongshiqi > --- > Changes in v2: > 1.fix patch subject according to the reply by Markus > > 2.change description in “imperative mood” > > scripts/coccicheck | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/scripts/coccicheck b/scripts/coccicheck > index e04d328..a1c4197 100755 > --- a/scripts/coccicheck > +++ b/scripts/coccicheck > @@ -257,6 +257,10 @@ if [ "$COCCI" = "" ] ; then > for f in `find $srctree/scripts/coccinelle/ -name '*.cocci' -type f | sort`; do > coccinelle $f > done > +elif [ -d "$COCCI" ] ; then > + for f in `find $COCCI/ -name '*.cocci' -type f | sort`; do > + coccinelle $f > + done > else > coccinelle $COCCI > fi > -- > 2.9.5 > > --8323329-2055800385-1571897998=:2771--