diff options
Diffstat (limited to 'kernel/module.c')
| -rw-r--r-- | kernel/module.c | 11 |
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) | |||
| 536 | mod->waiter = current; | 536 | mod->waiter = current; |
| 537 | } | 537 | } |
| 538 | 538 | ||
| 539 | /* modules using other modules */ | ||
| 540 | struct module_use | ||
| 541 | { | ||
| 542 | struct list_head source_list; | ||
| 543 | struct list_head target_list; | ||
| 544 | struct module *source, *target; | ||
| 545 | }; | ||
| 546 | |||
| 547 | /* Does a already use b? */ | 539 | /* Does a already use b? */ |
| 548 | static int already_uses(struct module *a, struct module *b) | 540 | static int already_uses(struct module *a, struct module *b) |
| 549 | { | 541 | { |
| @@ -589,8 +581,7 @@ static int add_module_usage(struct module *a, struct module *b) | |||
| 589 | /* Module a uses b */ | 581 | /* Module a uses b */ |
| 590 | int use_module(struct module *a, struct module *b) | 582 | int use_module(struct module *a, struct module *b) |
| 591 | { | 583 | { |
| 592 | struct module_use *use; | 584 | int err; |
| 593 | int no_warn, err; | ||
| 594 | 585 | ||
| 595 | if (b == NULL || already_uses(a, b)) return 1; | 586 | if (b == NULL || already_uses(a, b)) return 1; |
| 596 | 587 | ||
