Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932143Ab0GBULa (ORCPT ); Fri, 2 Jul 2010 16:11:30 -0400 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 User-Agent: Thunderbird 2.0.0.24 (X11/20100302) MIME-Version: 1.0 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 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 749 Lines: 22 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/