From: Daniel Borkmann Date: Thu, 19 Feb 2015 23:53:39 +0000 (+0100) Subject: rhashtable: allow to unload test module X-Git-Tag: v4.14-rc1~5831^2~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6dd0c1655be26345960a6bae574c7dc4648611d3;p=platform%2Fkernel%2Flinux-rpi.git rhashtable: allow to unload test module There's no good reason why to disallow unloading of the rhashtable test case module. Commit 9d6dbe1bbaf8 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: 9d6dbe1bbaf8 ("rhashtable: Make selftest modular") Signed-off-by: Daniel Borkmann Acked-by: Thomas Graf Signed-off-by: David S. Miller --- diff --git a/lib/test_rhashtable.c b/lib/test_rhashtable.c index f6ce291..58b9953 100644 --- a/lib/test_rhashtable.c +++ b/lib/test_rhashtable.c @@ -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");