modpost: remove mod->is_dot_o struct member
[linux-2.6-microblaze.git] / scripts / mod / modpost.c
index b667f53..bc00bba 100644 (file)
@@ -182,10 +182,8 @@ static struct module *new_module(const char *modname)
        p = NOFAIL(strdup(modname));
 
        /* strip trailing .o */
-       if (strends(p, ".o")) {
+       if (strends(p, ".o"))
                p[strlen(p) - 2] = '\0';
-               mod->is_dot_o = 1;
-       }
 
        /* add to list */
        mod->name = p;
@@ -716,8 +714,7 @@ static void handle_symbol(struct module *mod, struct elf_info *info,
        enum export export;
        const char *name;
 
-       if ((!is_vmlinux(mod->name) || mod->is_dot_o) &&
-           strstarts(symname, "__ksymtab"))
+       if (strstarts(symname, "__ksymtab"))
                export = export_from_secname(info, get_secindex(info, sym));
        else
                export = export_from_sec(info, get_secindex(info, sym));
@@ -2676,13 +2673,6 @@ int main(int argc, char **argv)
                struct symbol *s;
 
                for (s = symbolhash[n]; s; s = s->next) {
-                       /*
-                        * Do not check "vmlinux". This avoids the same warnings
-                        * shown twice, and false-positives for ARCH=um.
-                        */
-                       if (is_vmlinux(s->module->name) && !s->module->is_dot_o)
-                               continue;
-
                        if (s->is_static)
                                warn("\"%s\" [%s] is a static %s\n",
                                     s->name, s->module->name,