Loading scripts/mod/file2alias.c +1 −3 Original line number Diff line number Diff line Loading @@ -1571,9 +1571,7 @@ void handle_moddevtable(struct module *mod, struct elf_info *info, zeros = calloc(1, sym->st_size); symval = zeros; } else { symval = (void *)info->hdr + info->sechdrs[get_secindex(info, sym)].sh_offset + sym->st_value; symval = sym_get_data(info, sym); } /* First handle the "special" cases */ Loading scripts/mod/modpost.c +1 −1 Original line number Diff line number Diff line Loading @@ -324,7 +324,7 @@ static void *sym_get_data_by_offset(const struct elf_info *info, return (void *)info->hdr + sechdr->sh_offset + offset; } static void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym) void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym) { return sym_get_data_by_offset(info, get_secindex(info, sym), sym->st_value); Loading scripts/mod/modpost.h +1 −0 Original line number Diff line number Diff line Loading @@ -187,6 +187,7 @@ void get_src_version(const char *modname, char sum[], unsigned sumlen); /* from modpost.c */ char *read_text_file(const char *filename); char *get_line(char **stringp); void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym); enum loglevel { LOG_WARN, Loading Loading
scripts/mod/file2alias.c +1 −3 Original line number Diff line number Diff line Loading @@ -1571,9 +1571,7 @@ void handle_moddevtable(struct module *mod, struct elf_info *info, zeros = calloc(1, sym->st_size); symval = zeros; } else { symval = (void *)info->hdr + info->sechdrs[get_secindex(info, sym)].sh_offset + sym->st_value; symval = sym_get_data(info, sym); } /* First handle the "special" cases */ Loading
scripts/mod/modpost.c +1 −1 Original line number Diff line number Diff line Loading @@ -324,7 +324,7 @@ static void *sym_get_data_by_offset(const struct elf_info *info, return (void *)info->hdr + sechdr->sh_offset + offset; } static void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym) void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym) { return sym_get_data_by_offset(info, get_secindex(info, sym), sym->st_value); Loading
scripts/mod/modpost.h +1 −0 Original line number Diff line number Diff line Loading @@ -187,6 +187,7 @@ void get_src_version(const char *modname, char sum[], unsigned sumlen); /* from modpost.c */ char *read_text_file(const char *filename); char *get_line(char **stringp); void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym); enum loglevel { LOG_WARN, Loading