lkml.org 
[lkml]   [2002]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Export module_dummy_usage
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.024 / U:1.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site