Page MenuHomeFreeBSD

D56780.diff
No OneTemporary

D56780.diff

diff --git a/sys/compat/linuxkpi/common/include/linux/module.h b/sys/compat/linuxkpi/common/include/linux/module.h
--- a/sys/compat/linuxkpi/common/include/linux/module.h
+++ b/sys/compat/linuxkpi/common/include/linux/module.h
@@ -136,9 +136,14 @@
#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)

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 16, 5:46 AM (15 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32698955
Default Alt Text
D56780.diff (698 B)

Event Timeline