Received: by 2002:a17:90a:8504:0:0:0:0 with SMTP id l4csp414947pjn; Wed, 23 Oct 2019 01:35:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAUFpBbm2ilS9sjvI1+dIjvAF8lQhotqI7TUj8e6GmMT03SFuPVMyTzr5THXZcmCYBM47b X-Received: by 2002:a50:9713:: with SMTP id c19mr22462410edb.206.1571819743377; Wed, 23 Oct 2019 01:35:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571819743; cv=none; d=google.com; s=arc-20160816; b=Xgc97I9VzQ/EP4qJ7ewyQ4btfL0OILiJgD6CdNrZ0Xr+/f2uDNndRZ4gAnC4N8eVF3 R59w2Yzb/DT56UpfhmBJ1RJ/rga7voy8J7tDJm/MtihtLaDmJW89Ku5zewcLFJi+T3SW 1AIZzf958Wjt2rbveX3StpopabbngSiNW6/xLM5MwJXjlVZKVeUK8od+x3fxTGATaJN1 gqKbzipVU4VWHSpAVPOfPBB6uCqCYGq031YMSDGbS+5ON5J714E/DWrnQPTJUNabH6+5 X5hHvFNfUKoa3Vv5PKVWOmDDqGK4I/8Q5b6gb+5jjapptXlaJ1fXPb7hNT4VzO6Bwu1c G3Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=pXpwp2e+PzjGY1NeUUqy+S7CBZysgMG1tZyDw1nUvpA=; b=v0iIEetdMDsBUz21SOLKzCA29oKcTxj+c9bPcJpNPND25sRHEyKqppZxs9J1Q9per1 LCmibZ1nis95hXox0y+KVh1Onn2nAedy4hsrDJrw5Xupn7T5F1uruO9vGNv3mmjGGY77 zn3nSMSbw8Fs3H/BlMkgTyRY/ctj65iK/eaCk8xqIooInxth7TYDWv8TkwSeU2oaoyc1 xSZj5H8YL5mDmjIXqKLgnNJZmyLiQlsOzNb7hlMc/QdmAk2sdPpjFEd992sQiBtF3R7y C5HjVQPu3IBgpeJcgq3wGbwBxXH7kIg4bDYlvMuCOULnIspMgb3V1H+Y60JDPz5drw7r 62iQ== 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 l45si14830785edc.185.2019.10.23.01.35.18; Wed, 23 Oct 2019 01:35:43 -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 S2390231AbfJWIbs (ORCPT + 99 others); Wed, 23 Oct 2019 04:31:48 -0400 Received: from out1.zte.com.cn ([202.103.147.172]:34700 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390082AbfJWIbs (ORCPT ); Wed, 23 Oct 2019 04:31:48 -0400 Received: from mse-fl1.zte.com.cn (unknown [10.30.14.238]) by Forcepoint Email with ESMTPS id 447B0E2D470FAD69E41C; Wed, 23 Oct 2019 16:31:46 +0800 (CST) Received: from notes_smtp.zte.com.cn (notessmtp.zte.com.cn [10.30.1.239]) by mse-fl1.zte.com.cn with ESMTP id x9N8UNET081660; Wed, 23 Oct 2019 16:30:23 +0800 (GMT-8) (envelope-from zhong.shiqi@zte.com.cn) Received: from fox-host8.localdomain ([10.74.120.8]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2019102316304296-91731 ; Wed, 23 Oct 2019 16:30:42 +0800 From: zhongshiqi To: Julia.Lawall@lip6.fr Cc: Gilles.Muller@lip6.fr, 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, zhongshiqi Subject: [PATCH] Configuring COCCI parameter as a directory is supportted Date: Wed, 23 Oct 2019 16:32:43 +0800 Message-Id: <1571819563-18118-1-git-send-email-zhong.shiqi@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2019-10-23 16:30:43, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2019-10-23 16:30:26, Serialize complete at 2019-10-23 16:30:26 X-MAIL: mse-fl1.zte.com.cn x9N8UNET081660 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch puts a modification in scripts/coccicheck which supports users in configuring COCCI parameter as a directory to traverse files in directory. Signed-off-by: zhongshiqi --- 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