Skip to content

Commit

Permalink
rhashtable: allow to unload test module
Browse files Browse the repository at this point in the history
There's no good reason why to disallow unloading of the rhashtable
test case module.

Commit 9d6dbe1 moved the code from a boot test into a stand-alone
module, but only converted the subsys_initcall() handler into a
module_init() function without a related exit handler, and thus
preventing the test module from unloading.

Fixes: 9d6dbe1 ("rhashtable: Make selftest modular")
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Thomas Graf <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
borkmann authored and davem330 committed Feb 20, 2015
1 parent eb6d1ab commit 6dd0c16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/test_rhashtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ static int __init test_rht_init(void)
return err;
}

static void __exit test_rht_exit(void)
{
}

module_init(test_rht_init);
module_exit(test_rht_exit);

MODULE_LICENSE("GPL v2");

0 comments on commit 6dd0c16

Please sign in to comment.