From: Johannes Berg <johannes@sipsolutions.net>
To: backports@vger.kernel.org
Cc: Johannes Berg <johannes.berg@intel.com>
Subject: [PATCH 2/3] main: add module_exit()
Date: Fri, 28 Jan 2022 09:52:29 +0100 [thread overview]
Message-ID: <20220128095230.0a57cdbba670.I1ef27160b229985f1bf154a8cc3d6f6b08328895@changeid> (raw)
In-Reply-To: <20220128095230.da47bbe7d248.I29005f305b7808de21837d75e992b07444b4eaaa@changeid>
From: Johannes Berg <johannes.berg@intel.com>
This is needed since we have module_init() and otherwise
the kernel cannot unload the module again.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
backport/compat/main.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/backport/compat/main.c b/backport/compat/main.c
index 2540e7573674..d4f3340dba48 100644
--- a/backport/compat/main.c
+++ b/backport/compat/main.c
@@ -72,3 +72,8 @@ static int __init backport_init(void)
return 0;
}
subsys_initcall(backport_init);
+
+static void __exit backport_exit(void)
+{
+}
+module_exit(backport_exit);
--
2.34.1
--
To unsubscribe from this list: send the line "unsubscribe backports" in
next prev parent reply other threads:[~2022-01-28 8:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-28 8:52 [PATCH 1/3] patches: add spatch to adjust to changed ethtool ringparam API Johannes Berg
2022-01-28 8:52 ` Johannes Berg [this message]
2022-01-28 8:52 ` [PATCH 3/3] backports: add kthread.h Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220128095230.0a57cdbba670.I1ef27160b229985f1bf154a8cc3d6f6b08328895@changeid \
--to=johannes@sipsolutions.net \
--cc=backports@vger.kernel.org \
--cc=johannes.berg@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).