Skip to content

Commit

Permalink
rcutorture: Mark rcu_torture_init as __init
Browse files Browse the repository at this point in the history
The corresponding rcu_torture_cleanup cannot get marked as __exit, because
rcu_torture_init uses it to clean up if init fails.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
Acked-by: "Paul E. McKenney" <paulmck@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Josh Triplett authored and Linus Torvalds committed May 8, 2007
1 parent e3222c4 commit 6f8bc50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/rcutorture.c
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ rcu_torture_cleanup(void)
rcu_torture_print_module_parms("End of test: SUCCESS");
}

static int
static int __init
rcu_torture_init(void)
{
int i;
Expand Down

0 comments on commit 6f8bc50

Please sign in to comment.