History

modpost: rename handle_modversions() to handle_symbol()

This function handles not only modversions, but also unresolved symbols, export symbols, etc. Rename it to a more proper function name. While I was here, I also added the 'const' qualifier to *sym.

Masahiro Yamada committed 7 years ago

Commit 9bd2a091 parent e84f9fb1 file · +3 −3Browse files

Unified · Split

scripts/mod/modpost.c+3−3
@@ -683,8 +683,8 @@ static int ignore_undef_symbol(struct elf_info *info, const char *symname) · 682 unmodified lines
683 return 0;683 return 0;
684}684}
685 685
686static void handle_modversions(struct module *mod, struct elf_info *info,686static void handle_symbol(struct module *mod, struct elf_info *info,
687 Elf_Sym *sym, const char *symname)687 const Elf_Sym *sym, const char *symname)
688{688{
689 unsigned int crc;689 unsigned int crc;
690 enum export export;690 enum export export;
@@ -2051,7 +2051,7 @@ static void read_symbols(const char *modname) · 1360 unmodified lines
2051 for (sym = info.symtab_start; sym < info.symtab_stop; sym++) {2051 for (sym = info.symtab_start; sym < info.symtab_stop; sym++) {
2052 symname = remove_dot(info.strtab + sym->st_name);2052 symname = remove_dot(info.strtab + sym->st_name);
2053 2053
2054 handle_modversions(mod, &info, sym, symname);2054 handle_symbol(mod, &info, sym, symname);
2055 handle_moddevtable(mod, &info, sym, symname);2055 handle_moddevtable(mod, &info, sym, symname);
2056 }2056 }
2057 2057

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t