Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lib/test_string.c: allow module removal

The test_string module can't be removed because it lacks an exit hook.
Since there is no reason for it to be permanent, add an empty one to allow
module removal.

Link: https://lkml.kernel.org/r/20210616234503.28678-1-mcroce@linux.microsoft.com
Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Matteo Croce and committed by
Linus Torvalds
ce71efd0 ad65dcef

+5
+5
lib/test_string.c
··· 179 179 return 0; 180 180 } 181 181 182 + static __exit void string_selftest_remove(void) 183 + { 184 + } 185 + 182 186 static __init int string_selftest_init(void) 183 187 { 184 188 int test, subtest; ··· 220 216 } 221 217 222 218 module_init(string_selftest_init); 219 + module_exit(string_selftest_remove); 223 220 MODULE_LICENSE("GPL v2");