Merge remote branch 'repo/master' into stats
[openvswitch] / datapath / linux-2.4 / compat-2.4 / include / linux / module.h
1 #ifndef __LINUX_MODULE_WRAPPER_H
2 #define __LINUX_MODULE_WRAPPER_H 1
3
4 #include <linux/kernel.h>
5 #include_next <linux/module.h>
6
7 static inline int try_module_get(struct module *module)
8 {
9         BUG_ON(module != THIS_MODULE);
10         MOD_INC_USE_COUNT;
11         return 1;
12 }
13
14 static inline void module_put(struct module *module) 
15 {
16         BUG_ON(module != THIS_MODULE);
17         MOD_DEC_USE_COUNT;
18 }
19
20 #endif /* module.h */