diff mbox series

[2/3] main: add module_exit()

Message ID 20220128095230.0a57cdbba670.I1ef27160b229985f1bf154a8cc3d6f6b08328895@changeid (mailing list archive)
State New, archived
Headers show
Series [1/3] patches: add spatch to adjust to changed ethtool ringparam API | expand

Commit Message

Johannes Berg Jan. 28, 2022, 8:52 a.m. UTC
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 mbox series

Patch

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