All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] remove MOD_INC_USE_COUNT/MOD_DEC_USE_COUNT
@ 2004-09-19  9:49 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2004-09-19  9:49 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-19  9:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-19  9:49 [PATCH] remove MOD_INC_USE_COUNT/MOD_DEC_USE_COUNT Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.