Messages in this thread | | | Subject | Re: RFC: cleaning up the in-kernel headers | From | David Woodhouse <> | Date | Fri, 14 Jul 2006 01:11:14 +0100 |
| |
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
- 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/
| |