Commit e9fd319e authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

[PATCH] remove MOD_INC_USE_COUNT/MOD_DEC_USE_COUNT

They've been marked deprecated since 2.5.x and there's no more users.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d8e696f8
......@@ -550,30 +550,8 @@ 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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment