summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2004-10-18 18:12:45 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-18 18:12:45 -0700
commite9fd319ea30c2e93a37f913fde1a578bc6dd03ed (patch)
tree221f4cc33894fcc2aa9f205520d00908d828e700 /include/linux
parentd8e696f88aec55081e9a607b0b9b055710e63a15 (diff)
[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: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/module.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index fbf2dfc90015..60946c3d7dc7 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -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)