Skip to contentSkip to conversation

Export module_dummy_usage

PATCH New Rusty Russell 1 participant 1 message Nov 16, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Export module_dummy_usage

Trivial patch. We keep a dummy use count for old code which wants to know its own usecount using GET_USE_COUNT. It needs to be exported.

Name: Export dummy_use_count
Author: Rusty Russell
Status: Trivial
Depends: Module/module.patch.gz

D: This exports dummy_use_count for the few cases of GET_USE_COUNT().
D: Thank to Doug Ledford for the bug report.

kernel/module.c +1 -0
diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal .7740-linux-2.5-bk/kernel/module.c .7740-linux-2.5-bk.updated/kernel/module.c
@@ -1155,6 +1155,7 @@ static int __init init(void)
 
 /* Obsolete lvalue for broken code which asks about usage */
 int module_dummy_usage = 1;
+EXPORT_SYMBOL(module_dummy_usage);
 
 /* Call this at boot */
 __initcall(init);

--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.