[PATCH] Export module_dummy_usage

Rusty Russell (rusty@rustcorp.com.au)
Sat, 16 Nov 2002 17:30:25 +1100


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.
-
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/