staging: lustre: Use __init and __exit markers for lifecycle functions
authorMariusz Gorski <marius.gorski@gmail.com>
Sat, 25 Oct 2014 01:30:38 +0000 (03:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 08:35:16 +0000 (16:35 +0800)
Apply __init marker to module's init function and __exit to module's
exit function as they both have no other usage.

Signed-off-by: Mariusz Gorski <marius.gorski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/module.c

index dc09b43..3c23677 100644 (file)
@@ -110,7 +110,7 @@ lnet_ioctl(unsigned int cmd, struct libcfs_ioctl_data *data)
 
 DECLARE_IOCTL_HANDLER(lnet_ioctl_handler, lnet_ioctl);
 
-static int
+static int __init
 init_lnet(void)
 {
        int               rc;
@@ -135,7 +135,7 @@ init_lnet(void)
        return 0;
 }
 
-static void
+static void __exit
 fini_lnet(void)
 {
        int rc;