Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754883Ab0KMNnb (ORCPT ); Sat, 13 Nov 2010 08:43:31 -0500 Received: from mgw2.diku.dk ([130.225.96.92]:45053 "EHLO mgw2.diku.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752907Ab0KMNna (ORCPT ); Sat, 13 Nov 2010 08:43:30 -0500 Date: Sat, 13 Nov 2010 14:43:27 +0100 (CET) From: Julia Lawall To: Emese Revfy Cc: Kees Cook , linux-kernel@vger.kernel.org, cocci@diku.dk, Lionel Debroux , Brad Spengler Subject: Re: [Cocci] Re: status of constification In-Reply-To: <4CDE80E8.6060601@gmail.com> Message-ID: References: <20101108223844.GS5876@outflux.net> <4CD9BF25.4090306@gmail.com> <4CDC64B9.8070208@gmail.com> <4CDE80E8.6060601@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1083 Lines: 27 On Sat, 13 Nov 2010, Emese Revfy wrote: > >>> What would the right approach be? It is not obvious to find 100% of the > >>> header files, because some of them depend on information in Makefiles. > >> > >> For 100% coverage you can look at how the Linux Makefiles invoke sparse. > > > > I haven't looked at it, but I doubt it gives 100% coverage, because one > > can have code in both the if and else branches of an ifdef. I would > > imagine that it gives 100% coverage for whatever architecture you would be > > compiling for? > > For my purposes it's enough to find all includes for a given .config. Coccinelle doesn't interpret .config files. > What would be also useful is if Coccinelle could somehow ignore ifdef's that > guard code blocks so that it would analyse all code in a translation unit. It does that. julia -- 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/