mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + lib-test_stringc-allow-mode-removal.patch added to -mm tree
@ 2021-06-24  0:23 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-06-24  0:23 UTC (permalink / raw)
  To: mcroce, mm-commits


The patch titled
     Subject: lib/test_string.c: allow module removal
has been added to the -mm tree.  Its filename is
     lib-test_stringc-allow-mode-removal.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/lib-test_stringc-allow-mode-removal.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/lib-test_stringc-allow-mode-removal.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Matteo Croce <mcroce@microsoft.com>
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.

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>
---

 lib/test_string.c |    5 +++++
 1 file changed, 5 insertions(+)

--- a/lib/test_string.c~lib-test_stringc-allow-mode-removal
+++ a/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");
_

Patches currently in -mm which might be from mcroce@microsoft.com are

lib-test_stringc-allow-mode-removal.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-24  0:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-24  0:23 + lib-test_stringc-allow-mode-removal.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).