Skip to contentSkip to conversation

lib-test_stringc-allow-mode-removal.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 6, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: lib/test_string.c: allow module removal
has been removed from the -mm tree. Its filename was
lib-test_stringc-allow-mode-removal.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Matteo Croce <[email protected]>
Subject: 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.

---

 lib/test_string.c |    5 +++++
 1 file changed, 5 insertions(+)
lib/test_string.c renamed from lib/test_string.c~lib-test_stringc-allow-mode-removal +5 -0
@@ -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");

_

Patches currently in -mm which might be from [email protected] are