aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/compat/linuxkpi/common/include/linux/module.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/module.h b/sys/compat/linuxkpi/common/include/linux/module.h
index fbe57cbbed82..de4be1e9ebe9 100644
--- a/sys/compat/linuxkpi/common/include/linux/module.h
+++ b/sys/compat/linuxkpi/common/include/linux/module.h
@@ -136,9 +136,14 @@ _module_run(void *arg)
#define module_exit_order(fn, order) \
SYSUNINIT(fn, SI_SUB_OFED_MODINIT, (order), _module_run, (fn))
-#define module_get(module)
-#define module_put(module)
-#define try_module_get(module) 1
+static inline void module_get(struct module *module) {}
+static inline void module_put(struct module *module) {}
+
+static inline bool
+try_module_get(struct module *module)
+{
+ return (true);
+}
#define postcore_initcall(fn) module_init(fn)