aboutsummaryrefslogtreecommitdiff
path: root/kernel/module.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2010-06-05 11:17:35 -0600
committerRusty Russell <rusty@rustcorp.com.au>2010-06-05 11:17:36 +0930
commitc8e21ced08b39ef8dfe7236fb2a923a95f645262 (patch)
treeda34400daf3049814b459b9c8ba507d90abfe2bc /kernel/module.c
parent2c02dfe7fe3fba97a5665d329d039d2415ea5607 (diff)
module: fix kdb's illicit use of struct module_use.
Linus changed the structure, and luckily this didn't compile any more. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Cc: Jason Wessel <jason.wessel@windriver.com> Cc: Martin Hicks <mort@sgi.com>
Diffstat (limited to 'kernel/module.c')
-rw-r--r--kernel/module.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/kernel/module.c b/kernel/module.c
index be18c3e3468..bbb1d812c79 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -536,14 +536,6 @@ static void module_unload_init(struct module *mod)
mod->waiter = current;
}
-/* modules using other modules */
-struct module_use
-{
- struct list_head source_list;
- struct list_head target_list;
- struct module *source, *target;
-};
-
/* Does a already use b? */
static int already_uses(struct module *a, struct module *b)
{
@@ -589,8 +581,7 @@ static int add_module_usage(struct module *a, struct module *b)
/* Module a uses b */
int use_module(struct module *a, struct module *b)
{
- struct module_use *use;
- int no_warn, err;
+ int err;
if (b == NULL || already_uses(a, b)) return 1;