lkml.org 
[lkml]   [2004]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectreference_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/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.048 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site