Messages in this thread | | | Date | Wed, 18 Feb 2004 18:23:13 -0800 | From | "Randy.Dunlap" <> | Subject | reference_init.pl for Linux 2.6 |
| |
I have updated Keith Owens "reference_init.pl" script for Linux 2.6. It searches for code that refers to other code sections that they should not reference, such as init code calling exit code or v.v.
The script searches all .o (non-MODULE) files in the current directory and sub-directories. To restrict its scope, just 'cd drivers/video', e.g., to run it.
Notes: __devinit and __devexit don't mean/do anything if CONFIG_HOTPLUG=y, so setting CONFIG_HOTPLUG=n and doing a 'make allyesconfig && make all' finds the most possible problems. I say 'possible' because there are probably some false positives reported.
script for Linux 2.6 is at: http://developer.osdl.org/rddunlap/scripts/reference_init26.pl
and output from Linux 2.6.3 is at: http://developer.osdl.org/rddunlap/scripts/badrefs.out
Comments/corrections welcome.
-- ~Randy kernel-janitors project: http://janitor.kernelnewbies.org/ - 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/
| |