On Tue, 11 July 2006 13:41:06 -0700, Randy.Dunlap wrote:On Tue, 11 Jul 2006 21:41:07 +0200 Sam Ravnborg wrote:
That is version 2 of the script. There are also versions 3 & 4.JÃrn Engel IIRC created a perl scrip that did this a year or two ago.http://lkml.org/lkml/2003/10/1/74
Try googling a bit.
http://marc.theaimsgroup.com/?l=linux-kernel&w=2&r=1&s=check+headers+for+complete+includes&q=t
Boy, it took me a while to remember what I did back then. In
principle, the script just compiles trivial c files with a single
#include <linux/foo.h>
inside.
Not too bad in principle, but there were two problems I couldn't
solve:
1. One of the goals should be to make a compile faster, not slower.
Adding further includes hardly helps.
2. It is practically impossible to test every possible combination of
#ifdefs in the various headers pulled in.