2013-03-18 23:21:03

by Davidlohr Bueso

[permalink] [raw]
Subject: [PATCH 2/3] rbtree_test: add __init/__exit annotations

Signed-off-by: Davidlohr Bueso <[email protected]>
---
lib/rbtree_test.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/rbtree_test.c b/lib/rbtree_test.c
index 66ca26d..0fea14e 100644
--- a/lib/rbtree_test.c
+++ b/lib/rbtree_test.c
@@ -151,7 +151,7 @@ static void check_augmented(int nr_nodes)
}
}

-static int rbtree_test_init(void)
+static int __init rbtree_test_init(void)
{
int i, j;
cycles_t time1, time2, time;
@@ -224,7 +224,7 @@ static int rbtree_test_init(void)
return -EAGAIN; /* Fail will directly unload the module */
}

-static void rbtree_test_exit(void)
+static void __exit rbtree_test_exit(void)
{
pr_info("test exit\n");
}
--
1.7.11.7