diff options
Diffstat (limited to 'include/linux/module.h')
| -rw-r--r-- | include/linux/module.h | 34 |
1 files changed, 7 insertions, 27 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index c6fa6a8ef95c..e5d2d6112f4b 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -567,40 +567,20 @@ struct obsolete_modparm { #define MODULE_PARM(var,type) \ struct obsolete_modparm __parm_##var __attribute__((section("__obsparm"))) = \ { __stringify(var), type }; - -static inline void __deprecated MOD_INC_USE_COUNT(struct module *module) -{ - __unsafe(module); - -#if defined(CONFIG_MODULE_UNLOAD) && defined(MODULE) - local_inc(&module->ref[get_cpu()].count); - put_cpu(); -#else - (void)try_module_get(module); -#endif -} - -static inline void __deprecated MOD_DEC_USE_COUNT(struct module *module) -{ - module_put(module); -} - -#define MOD_INC_USE_COUNT MOD_INC_USE_COUNT(THIS_MODULE) -#define MOD_DEC_USE_COUNT MOD_DEC_USE_COUNT(THIS_MODULE) #else #define MODULE_PARM(var,type) -#define MOD_INC_USE_COUNT do { } while (0) -#define MOD_DEC_USE_COUNT do { } while (0) #endif #define __MODULE_STRING(x) __stringify(x) /* Use symbol_get and symbol_put instead. You'll thank me. */ #define HAVE_INTER_MODULE -extern void inter_module_register(const char *, struct module *, const void *); -extern void inter_module_unregister(const char *); -extern const void *inter_module_get(const char *); -extern const void *inter_module_get_request(const char *, const char *); -extern void inter_module_put(const char *); +extern void __deprecated inter_module_register(const char *, + struct module *, const void *); +extern void __deprecated inter_module_unregister(const char *); +extern const void * __deprecated inter_module_get(const char *); +extern const void * __deprecated inter_module_get_request(const char *, + const char *); +extern void __deprecated inter_module_put(const char *); #endif /* _LINUX_MODULE_H */ |
