diff mbox series

[09/38] main: add module_exit()

Message ID 20221011230356.75710624f93f.I1ef27160b229985f1bf154a8cc3d6f6b08328895@changeid (mailing list archive)
State New, archived
Headers show
Series backports updates | expand

Commit Message

Johannes Berg Oct. 11, 2022, 9:04 p.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>
Reviewed-on: https://git-ger-8.devtools.intel.com/gerrit/149476
Reviewed-by: Luciano Coelho <luciano.coelho@intel.com>
Tested-by: Luciano Coelho <luciano.coelho@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 17ade98b8b51..ba1422b5d778 100644
--- a/backport/compat/main.c
+++ b/backport/compat/main.c
@@ -71,3 +71,8 @@  static int __init backport_init(void)
         return 0;
 }
 subsys_initcall(backport_init);
+
+static void __exit backport_exit(void)
+{
+}
+module_exit(backport_exit);