Messages in this thread Patch in this message | | | Date | Sun, 19 Sep 2004 11:49:39 +0200 | From | Christoph Hellwig <> | Subject | [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.
--- 1.79/include/linux/module.h 2004-06-27 09:19:28 +02:00 +++ edited/include/linux/module.h 2004-09-12 18:40:16 +02:00 @@ -550,30 +550,8 @@ #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) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |