atom feed7 messages in org.kernel.vger.kernel-janitorsRE: [PATCH] infiniband: adding __init...
FromSent OnAttachments
Peter HüweJun 10, 2009 4:59 pm 
Jiri KosinaJun 12, 2009 2:02 am 
Sean HeftyJun 16, 2009 8:49 am 
Peter HueweJun 22, 2009 2:50 pm 
Roland DreierJun 22, 2009 5:20 pm 
Peter HueweJun 22, 2009 5:40 pm 
Roland DreierJun 22, 2009 10:25 pm 
Subject:RE: [PATCH] infiniband: adding __init/__exit macros to addr.c and cma.c
From:Sean Hefty (sean@intel.com)
Date:Jun 16, 2009 8:49:19 am
List:org.kernel.vger.kernel-janitors

From: Peter Huewe <pete@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 <pete@gmx.de>

Roland, did you want to pull this through your tree?

--- 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);