mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-15 19:55:32 +00:00
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>
This commit is contained in:
parent
ad65dcef3a
commit
ce71efd039
1 changed files with 5 additions and 0 deletions
|
@ -179,6 +179,10 @@ static __init int strnchr_selftest(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static __exit void string_selftest_remove(void)
|
||||
{
|
||||
}
|
||||
|
||||
static __init int string_selftest_init(void)
|
||||
{
|
||||
int test, subtest;
|
||||
|
@ -216,4 +220,5 @@ fail:
|
|||
}
|
||||
|
||||
module_init(string_selftest_init);
|
||||
module_exit(string_selftest_remove);
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
|
Loading…
Add table
Reference in a new issue