int crc_valid;
        char *namespace;
        unsigned int weak:1;
-       unsigned int vmlinux:1;    /* 1 if symbol is defined in vmlinux */
-       unsigned int kernel:1;     /* 1 if symbol is from kernel
-                                   *  (only for external modules) **/
        unsigned int is_static:1;  /* 1 if symbol is not global */
        enum export  export;       /* Type of export */
        char name[];
        }
 
        s->module = mod;
-       s->vmlinux   = is_vmlinux(mod->name);
-       s->kernel    = 0;
        s->export    = export;
        return s;
 }
 /* parse Module.symvers file. line format:
  * 0x12345678<tab>symbol<tab>module<tab>export<tab>namespace
  **/
-static void read_dump(const char *fname, unsigned int kernel)
+static void read_dump(const char *fname)
 {
        unsigned long size, pos = 0;
        void *file = grab_file(fname, &size);
                                have_vmlinux = 1;
                        mod = new_module(modname);
                        mod->skip = 1;
+                       mod->from_dump = 1;
                }
                s = sym_add_exported(symname, mod, export_no(export));
-               s->kernel    = kernel;
                s->is_static = 0;
                sym_set_crc(symname, crc);
                sym_update_namespace(symname, namespace);
 {
        if (!external_module)
                return 1;
-       if (sym->vmlinux || sym->kernel)
+       if (sym->module->from_dump)
                return 0;
        return 1;
 }
        }
 
        if (kernel_read)
-               read_dump(kernel_read, 1);
+               read_dump(kernel_read);
        while (extsym_start) {
                struct ext_sym_list *tmp;
 
-               read_dump(extsym_start->file, 0);
+               read_dump(extsym_start->file);
                tmp = extsym_start->next;
                free(extsym_start);
                extsym_start = tmp;