scsi: add __init/__exit macros to ibmvstgt.c
PATCH 4/11 scsi: add __init/__exit macros to ibmvstgt.c
From: Peter Huewe <[email protected]>
Add the __init and __exit macros to the module_init / module_exit functions from drivers/scsi/ibmvscsi/ibmvstgt.c
Signed-off-by Peter Huewe <[email protected]>
Cc FUJITA Tomonori <[email protected]>
Cc Stephen Rothwell <[email protected]>
Cc James Bottomley <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/scsi/ibmvscsi/ibmvstgt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/ibmvscsi/ibmvstgt.c renamed from drivers/scsi/ibmvscsi/ibmvstgt.c~scsi-add-__init-__exit-macros-to-ibmvstgtc +2 -2
@@ -955,7 +955,7 @@ static struct srp_function_template ibmv .it_nexus_response = ibmvstgt_it_nexus_response, }; -static int ibmvstgt_init (void ) +static int __init ibmvstgt_init (void ) {int err = -ENOMEM ;
@@ -986,7 +986,7 @@ release_transport:return err; } -static void ibmvstgt_exit (void ) +static void __exit ibmvstgt_exit(void) {printk ("Unregister IBM virtual SCSI driver\n" );
_
Quoted 11 lines · On Thu, 06 Aug 2009 16:09:22 -0700 [email protected] wrote:
From: Peter Huewe <[email protected]>
Add the
__initand__exitmacros to themodule_init/module_exitfunctions fromdrivers/scsi/ibmvscsi/ibmvstgt.cSigned-off-by Peter Huewe <[email protected]>Cc FUJITA Tomonori <[email protected]>Cc Stephen Rothwell <[email protected]>Cc James Bottomley <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
Acked-by FUJITA Tomonori <[email protected]>
Thanks,