* [PATCH] Export module_dummy_usage
@ 2002-11-16 6:30 Rusty Russell
0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2002-11-16 6:30 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel, Doug Ledford
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.
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
--- .7740-linux-2.5-bk/kernel/module.c 2002-11-16 08:36:15.000000000 +1100
+++ .7740-linux-2.5-bk.updated/kernel/module.c 2002-11-16 17:28:07.000000000 +1100
@@ -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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-16 6:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-16 6:30 [PATCH] Export module_dummy_usage Rusty Russell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox