summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lnet/lnet/module.c
diff options
context:
space:
mode:
authorMariusz Gorski <marius.gorski@gmail.com>2014-10-25 03:30:38 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-29 16:35:16 +0800
commit828ebb8f82d9117762ebc22c6bc0b21d68301d44 (patch)
tree4d70a685fe409ca0efb2e1d558dbffcf788393ef /drivers/staging/lustre/lnet/lnet/module.c
parent87ebccf97f54fe20c0a8a86e21164473cc7d57e1 (diff)
downloadop-kernel-dev-828ebb8f82d9117762ebc22c6bc0b21d68301d44.zip
op-kernel-dev-828ebb8f82d9117762ebc22c6bc0b21d68301d44.tar.gz
staging: lustre: Use __init and __exit markers for lifecycle functions
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>
Diffstat (limited to 'drivers/staging/lustre/lnet/lnet/module.c')
-rw-r--r--drivers/staging/lustre/lnet/lnet/module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lnet/lnet/module.c b/drivers/staging/lustre/lnet/lnet/module.c
index dc09b43..3c23677 100644
--- a/drivers/staging/lustre/lnet/lnet/module.c
+++ b/drivers/staging/lustre/lnet/lnet/module.c
@@ -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;
OpenPOWER on IntegriCloud