mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
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>
This commit is contained in:
parent
2c02dfe7fe
commit
c8e21ced08
3 changed files with 11 additions and 19 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue