diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 15c0eaf1ae4c..a244ae109562 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -1987,16 +1987,6 @@ static void read_symbols(const char *modname) handle_moddevtable(mod, &info, sym, symname); } - /* Apply symbol namespaces from __kstrtabns_ entries. */ - for (sym = info.symtab_start; sym < info.symtab_stop; sym++) { - symname = remove_dot(info.strtab + sym->st_name); - - if (strstarts(symname, "__kstrtabns_")) - sym_update_namespace(symname + strlen("__kstrtabns_"), - namespace_from_kstrtabns(&info, - sym)); - } - // check for static EXPORT_SYMBOL_* functions && global vars for (sym = info.symtab_start; sym < info.symtab_stop; sym++) { unsigned char bind = ELF_ST_BIND(sym->st_info); @@ -2398,7 +2388,6 @@ static void read_dump(const char *fname, unsigned int kernel) s->preloaded = 1; s->is_static = 0; sym_update_crc(symname, mod, crc, export_no(export)); - sym_update_namespace(symname, namespace); } release_file(file, size); return;