All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jon Schindler <jkschind@gmail.com>
To: linux-kernel@vger.kernel.org, trivial@kernel.org,
	kernel-janitors@vger.kernel.org
Subject: [PATCH 1/9] /drivers/net/8390.c replaced init_module&cleanup_module
Date: Thu, 28 Feb 2008 07:30:14 +0000	[thread overview]
Message-ID: <47C66306.7020006@watson.wustl.edu> (raw)

Replaced init_module and cleanup_module with static functions and module_init/module_exit.

Signed-off-by: Jon Schindler <jkschind@gmail.com>
---
diff --git a/drivers/net/8390.c b/drivers/net/8390.c
index a828076..0ed41a3 100644
--- a/drivers/net/8390.c
+++ b/drivers/net/8390.c
@@ -48,14 +48,16 @@ EXPORT_SYMBOL(__alloc_ei_netdev);
 
 #if defined(MODULE)
 
-int init_module(void)
+static int __init ns8390_module_init(void)
 {
 	return 0;
 }
 
-void cleanup_module(void)
+static void __exit ns8390_module_exit(void)
 {
 }
 
+module_init(ns8390_init_module);
+module_exit(ns8390_module_exit);
 #endif /* MODULE */
 MODULE_LICENSE("GPL");

WARNING: multiple messages have this Message-ID (diff)
From: Jon Schindler <jkschind@gmail.com>
To: linux-kernel@vger.kernel.org, trivial@kernel.org,
	kernel-janitors@vger.kernel.org
Subject: [PATCH 1/9] /drivers/net/8390.c replaced init_module&cleanup_module with module_init&module_exit
Date: Thu, 28 Feb 2008 01:30:14 -0600	[thread overview]
Message-ID: <47C66306.7020006@watson.wustl.edu> (raw)

Replaced init_module and cleanup_module with static functions and module_init/module_exit.

Signed-off-by: Jon Schindler <jkschind@gmail.com>
---
diff --git a/drivers/net/8390.c b/drivers/net/8390.c
index a828076..0ed41a3 100644
--- a/drivers/net/8390.c
+++ b/drivers/net/8390.c
@@ -48,14 +48,16 @@ EXPORT_SYMBOL(__alloc_ei_netdev);
 
 #if defined(MODULE)
 
-int init_module(void)
+static int __init ns8390_module_init(void)
 {
 	return 0;
 }
 
-void cleanup_module(void)
+static void __exit ns8390_module_exit(void)
 {
 }
 
+module_init(ns8390_init_module);
+module_exit(ns8390_module_exit);
 #endif /* MODULE */
 MODULE_LICENSE("GPL");

             reply	other threads:[~2008-02-28  7:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-28  7:30 Jon Schindler [this message]
2008-02-28  7:30 ` [PATCH 1/9] /drivers/net/8390.c replaced init_module&cleanup_module with module_init&module_exit Jon Schindler
2008-03-01  6:20 ` [PATCH 1/9] /drivers/net/8390.c replaced init_module&cleanup_module Jon Schindler
2008-03-01  6:20   ` [PATCH 1/9] /drivers/net/8390.c replaced init_module&cleanup_module with module_init&module_exit Jon Schindler
2008-03-05 11:21 ` [PATCH 1/9] /drivers/net/8390.c replaced init_module&cleanup_module Jeff Garzik
2008-03-05 11:21   ` [PATCH 1/9] /drivers/net/8390.c replaced init_module&cleanup_module with module_init&module_exit Jeff Garzik

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=47C66306.7020006@watson.wustl.edu \
    --to=jkschind@gmail.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@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.