From: Domen Puncer <domen@coderock.org>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] init_module / cleanup_module cleanup
Date: Sat, 28 May 2005 13:13:04 +0000 [thread overview]
Message-ID: <20050528131304.GA2694@nd47.coderock.org> (raw)
In-Reply-To: <42984D00.8070003@reiner-h.de>
[-- Attachment #1: Type: text/plain, Size: 1420 bytes --]
On 28/05/05 12:50 +0200, Reiner Herrmann wrote:
> Hi!
>
> This is my first kernel patch, so I did a rather simple cleanup.
> Some network-drivers still used the old
> init_module() / cleanup_module() way of de-/registering
> at the kernel.
Hi Reiner.
Nice, you got tabs and linewraps right the first time.
Still, some issues and nitpicks:
Missing "Signed-off-by:";
Patch should probably be split per dir (diffsplit -d) and if some patch
touches >1 file of a driver, per driver.
Also, diffstat -p1 when patching multiple files is great.
(http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt is a nice
read).
>
> diff -uprN vanilla-2.6.12-rc5-kj/drivers/net/wireless/wavelan.c linux-2.6.12-rc5-kj/drivers/net/wireless/wavelan.c
> --- vanilla-2.6.12-rc5-kj/drivers/net/wireless/wavelan.c 2005-03-02 08:38:26.000000000 +0100
> +++ linux-2.6.12-rc5-kj/drivers/net/wireless/wavelan.c 2005-05-28 01:10:59.000000000 +0200
This one (and probably some others) won't compile on !MODULE, because
it includes wavelan.p.h with variables only defined on MODULE.
An ugly hack i used to quickly compile test it:
egrep "^--- " ~/netdrivers_module_cleanup.diff | cut -f2 -d' '| cut -f1 | cut -f2- -d'/' | sed 's/.c$/.o/g' | xargs -n1 make 2>&1
Btw. anyone knows how to make ie.
"make CFLAGS=-DMODULE drivers/net/3c59x.o" work?
Also, when playing with __init and __exit, "make namespacecheck" can
catch some errors.
Domen
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
next prev parent reply other threads:[~2005-05-28 13:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-28 10:50 [KJ] init_module / cleanup_module cleanup Reiner Herrmann
2005-05-28 13:13 ` Domen Puncer [this message]
2005-05-28 18:20 ` randy_dunlap
2005-05-29 13:42 ` Reiner Herrmann
2005-06-19 19:50 ` Domen Puncer
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=20050528131304.GA2694@nd47.coderock.org \
--to=domen@coderock.org \
--cc=kernel-janitors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.