Re: RFC: cleaning up the in-kernel headers

David Woodhouse
2006-07-14T00:10:47Z

On Tue, 2006-07-11 at 18:06 +0200, Adrian Bunk wrote:
> I'd like to cleanup the mess of the in-kernel headers, based on the
> following rules:
> - every header should #include everything it uses
> - remove unneeded #include's from headers

If you also fancy removing gratuitous instances of #ifdef __KERNEL__,
that might be useful...

$ for a in `grep -rl __KERNEL__ include` ; do DIR=`dirname $a` ;
NAME=`basename $a` ; grep -q $NAME $DIR/Kbuild 2>/dev/null || grep -q
$NAME include/asm-generic/Kbuild.asm || echo $DIR/$NAME ; done | wc -l
481

--
dwmw2