kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] infiniband: adding __init/__exit macros to addr.c and cma.c
@ 2009-06-11  0:00 Peter Hüwe
  2009-06-12  9:02 ` [PATCH] infiniband: adding __init/__exit macros to addr.c and Jiri Kosina
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Peter Hüwe @ 2009-06-11  0:00 UTC (permalink / raw)
  To: kernel-janitors

From: Peter Huewe <peterhuewe@gmx.de>

Trivial patch which adds the __init and __exit macros to the module_init /
module_exit functions from drivers/infiniband/core/addr.c and cma.c
linux version 2.6.30

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
---
diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c
index ce511d8..5be1bd4 100644
--- a/drivers/infiniband/core/addr.c
+++ b/drivers/infiniband/core/addr.c
@@ -514,7 +514,7 @@ static struct notifier_block nb = {
 	.notifier_call = netevent_callback
 };
 
-static int addr_init(void)
+static int __init addr_init(void)
 {
 	addr_wq = create_singlethread_workqueue("ib_addr");
 	if (!addr_wq)
@@ -524,7 +524,7 @@ static int addr_init(void)
 	return 0;
 }
 
-static void addr_cleanup(void)
+static void __exit addr_cleanup(void)
 {
 	unregister_netevent_notifier(&nb);
 	destroy_workqueue(addr_wq);
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 851de83..0753178 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -2960,7 +2960,7 @@ static void cma_remove_one(struct ib_device *device)
 	kfree(cma_dev);
 }
 
-static int cma_init(void)
+static int __init cma_init(void)
 {
 	int ret, low, high, remaining;
 
@@ -2990,7 +2990,7 @@ err:
 	return ret;
 }
 
-static void cma_cleanup(void)
+static void __exit cma_cleanup(void)
 {
 	ib_unregister_client(&cma_client);
 	unregister_netdevice_notifier(&cma_nb);

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-06-23  5:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-11  0:00 [PATCH] infiniband: adding __init/__exit macros to addr.c and cma.c Peter Hüwe
2009-06-12  9:02 ` [PATCH] infiniband: adding __init/__exit macros to addr.c and Jiri Kosina
2009-06-16 15:49 ` [PATCH] infiniband: adding __init/__exit macros to addr.c and cma.c Sean Hefty
2009-06-22 21:50 ` Peter Huewe
2009-06-23  0:21 ` Roland Dreier
2009-06-23  0:41 ` Peter Huewe
2009-06-23  5:25 ` Roland Dreier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).