kbuild: modpost problem when symbols move from one module to another
[safe/jmp/linux-2.6] / scripts / mod / modpost.c
index 2ef9a19..93ac52a 100644 (file)
@@ -268,6 +268,9 @@ static struct symbol *sym_add_exported(const char *name, struct module *mod,
                             "was in %s%s\n", mod->name, name,
                             s->module->name,
                             is_vmlinux(s->module->name) ?"":".ko");
+               } else {
+                       /* In case Modules.symvers was out of date */
+                       s->module = mod;
                }
        }
        s->preloaded = 0;