From: "Randy.Dunlap" <rddunlap@osdl.org>
To: kjo <kernel-janitors@osdl.org>
Cc: lkml <linux-kernel@vger.kernel.org>, kaos@ocs.com.au
Subject: reference_init.pl for Linux 2.6
Date: Wed, 18 Feb 2004 18:23:13 -0800 [thread overview]
Message-ID: <20040218182313.7b7b915e.rddunlap@osdl.org> (raw)
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/
next reply other threads:[~2004-02-19 2:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-19 2:23 Randy.Dunlap [this message]
2004-02-19 2:51 ` Dave Jones
2004-02-19 12:00 ` Keith Owens
2004-02-19 17:35 ` Randy.Dunlap
2004-02-19 18:31 Rui Saraiva
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040218182313.7b7b915e.rddunlap@osdl.org \
--to=rddunlap@osdl.org \
--cc=kaos@ocs.com.au \
--cc=kernel-janitors@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®