[announce] checkversion.pl script

From: Randy.Dunlap
Date: Wed Aug 27 2003 - 20:11:57 EST


Hi,

I modified scripts/checkconfig.pl to make checkversion.pl.
It checks for cases of <linux/version.h> #included but not
needed (which makes for more rebuilds than required) and for
cases of <linux/version.h> not #included when macros from it
are used. (Thanks for Randy Hron for some updates to it.)

You can get it from (for future updates; also attached)
http://developer.osdl.org/rddunlap/scripts/checkversion.pl

Sample from linux-2.6.0-test3, fs/ only:

[rddunlap@dragon fs]$ find . -name \*\.c | xargs checkversion.pl | more
./afs/cmservice.c: 12 linux/version.h not needed.
./afs/kafstimod.c: 12 linux/version.h not needed.
./afs/kafsasyncd.c: 19 linux/version.h not needed.
./cifs/file.c: 26 linux/version.h not needed.
./cifs/transport.c: 26 linux/version.h not needed.
./cifs/cifsfs.c: 31 linux/version.h not needed.
./nls/nls_base.c: 11 linux/version.h not needed.
./jffs2/super.c: 17 linux/version.h not needed.
./jffs2/fs.c: 356: need linux/version.h
./jffs2/file.c: 435: need linux/version.h
./coda/coda_linux.c: 10 linux/version.h not needed.
./adfs/super.c: 10 linux/version.h not needed.
./adfs/dir_fplus.c: 10 linux/version.h not needed.
./adfs/inode.c: 10 linux/version.h not needed.
./adfs/map.c: 10 linux/version.h not needed.
./adfs/dir_f.c: 12 linux/version.h not needed.
./adfs/dir.c: 13 linux/version.h not needed.
./adfs/file.c: 22 linux/version.h not needed.
./udf/super.c: 49 linux/version.h not needed.
./befs/datastream.c: 14 linux/version.h not needed.
./lockd/svc.c: 24 linux/version.h not needed.
./devfs/base.c: 677 linux/version.h not needed.
./jffs/intrep.c: 67 linux/version.h not needed.

--
~Randy

Attachment: checkversion.pl
Description: Binary data