From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cantor.suse.de ([195.135.220.2]:44718 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757575Ab0GBUL3 (ORCPT ); Fri, 2 Jul 2010 16:11:29 -0400 Message-ID: <4C2E47E9.5090408@suse.cz> Date: Fri, 02 Jul 2010 22:11:21 +0200 From: Michal Marek MIME-Version: 1.0 Subject: Re: [PATCH 1/7] Add a target to use the Coccinelle checker References: <1275837307-4283-1-git-send-email-npalix@diku.dk> <1275837307-4283-2-git-send-email-npalix@diku.dk> <20100630185851.GA17502@shinshilla> In-Reply-To: <20100630185851.GA17502@shinshilla> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Kulikov Vasiliy Cc: Nicolas Palix , Randy Dunlap , Roland Dreier , Joe Perches , Andrew Morton , "David S. Miller" , Sam Ravnborg , Julia Lawall , Gilles Muller , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, cocci@diku.dk, Wolfram Sang , Kernel Janitors , =?ISO-8859-1?Q?Am=E9rico_Wang?= , Andy Isaacson , Linus Torvalds , Pekka Enberg , walter harms , Joerg Roedel , Jan Engelhardt On 30.6.2010 20:58, Kulikov Vasiliy wrote: >> +if [ "$COCCI" = "" ] ; then >> + for f in `find $srctree/scripts/coccinelle/ -name '*.cocci' -type f | sort`; do >> + coccinelle $f $srctree; >> + done >> +else >> + coccinelle $COCCI $srctree >> +fi > > I think it is more usefull to use $M instead of $srctree to run simple > 'make coccicheck'. Good idea, but 1) The right variable to look for is $KBUILD_EXTMOD 2) If this is not set, the script should check files in $srctree as before Michal