Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755592Ab0FFSQN (ORCPT ); Sun, 6 Jun 2010 14:16:13 -0400 Received: from pfepb.post.tele.dk ([195.41.46.236]:37586 "EHLO pfepb.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751680Ab0FFSQM (ORCPT ); Sun, 6 Jun 2010 14:16:12 -0400 Date: Sun, 6 Jun 2010 20:16:07 +0200 From: Sam Ravnborg To: Nicolas Palix Cc: Randy Dunlap , Roland Dreier , Joe Perches , Andrew Morton , "David S. Miller" , Michal Marek , Julia Lawall , Gilles Muller , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, cocci@diku.dk, Wolfram Sang , Kernel Janitors , Am?rico 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 Message-ID: <20100606181607.GA15535@merkur.ravnborg.org> References: <1275837307-4283-1-git-send-email-npalix@diku.dk> <1275837307-4283-2-git-send-email-npalix@diku.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1275837307-4283-2-git-send-email-npalix@diku.dk> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1531 Lines: 44 On Sun, Jun 06, 2010 at 05:15:01PM +0200, Nicolas Palix wrote: > A 'coccicheck' target is added. It can be called with four different > modes. Each one generates a different kind of output, i.e. context, > patch, org, report, according to the corresponding mode to be > activated. > > The new target calls the 'coccicheck' front-end in the 'scripts' > directory with the MODE argument. Every SmPL file in the > subdirectories of 'scripts/coccinelle' is then given to the front-end > and applied to the entire source tree. > > The four modes behave as follows: > > 'report' generates a list in the following format: > file:line:column-column: message > > 'patch' proposes a fix, when possible. > > 'context' highlights lines of interest and their context in a > diff-like style. Lines of interest are indicated with '-'. > > 'org' generates a report in the Org mode format of Emacs. > > Signed-off-by: Nicolas Palix > Signed-off-by: Julia Lawall Hi Nicolas. This is almost what I had in mind - thanks. Most importantly it no longer add all the stuff to the top-level Makefile but defer this to a script. If/when we decide to move all the checkers to scripts/* we can do the last adjustments. Acked-by: Sam Ravnborg Sam -- 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/