From: Denis Cheng <crquan@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: [PATCH] add static declaration to non-global functions and init_module / cleanup_module fixes
Date: Tue, 17 Jul 2007 03:56:41 +0000 [thread overview]
Message-ID: <11846446011693-git-send-email-crquan@gmail.com> (raw)
switch to use module_init / module_exit macros.
To: Bruce Janson <bruce@cs.usyd.edu.au>
Cc: kernel-janitors@vger.kernel.org
Signed-off-by: Denis Cheng <crquan@gmail.com>
---
drivers/net/wireless/wavelan.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/wavelan.c b/drivers/net/wireless/wavelan.c
index 1cf090d..a489ef4 100644
--- a/drivers/net/wireless/wavelan.c
+++ b/drivers/net/wireless/wavelan.c
@@ -4307,7 +4307,7 @@ out:
* Insertion of the module
* I'm now quite proud of the multi-device support.
*/
-int __init init_module(void)
+static int __init wavelan_init(void)
{
int ret = -EIO; /* Return error if no cards found */
int i;
@@ -4371,7 +4371,7 @@ int __init init_module(void)
/*
* Removal of the module
*/
-void cleanup_module(void)
+static void __exit wavelan_exit(void)
{
#ifdef DEBUG_MODULE_TRACE
printk(KERN_DEBUG "-> cleanup_module()\n");
@@ -4398,7 +4398,12 @@ void cleanup_module(void)
printk(KERN_DEBUG "<- cleanup_module()\n");
#endif
}
+
+module_init(wavelan_init);
+module_exit(wavelan_exit);
+
#endif /* MODULE */
+
MODULE_LICENSE("GPL");
/*
--
1.5.2.2
next reply other threads:[~2007-07-17 3:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-17 3:56 Denis Cheng [this message]
2007-07-17 4:07 ` [PATCH] add static declaration to non-global functions and init_module / cleanup_module fixes Bruce Janson
2007-07-17 4:41 ` rae l
2007-07-17 5:10 ` Bruce Janson
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=11846446011693-git-send-email-crquan@gmail.com \
--to=crquan@gmail.com \
--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.