diff options
author | Matteo Croce <mcroce@microsoft.com> | 2021-06-30 18:56:07 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-07-01 11:06:05 -0700 |
commit | ce71efd03916ea8fe45e9ef6bd6abe4c20734a57 (patch) | |
tree | 1756f02a78908836916af15d5342a01c3a24f448 /lib/test_string.c | |
parent | ad65dcef3a87c24d6c6156eae5e7b47311d6e3cf (diff) | |
download | lwn-ce71efd03916ea8fe45e9ef6bd6abe4c20734a57.tar.gz lwn-ce71efd03916ea8fe45e9ef6bd6abe4c20734a57.zip |
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>
Diffstat (limited to 'lib/test_string.c')
-rw-r--r-- | lib/test_string.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/test_string.c b/lib/test_string.c index 7b31f4a505bf..9dfd6f52de92 100644 --- a/lib/test_string.c +++ b/lib/test_string.c @@ -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"); |