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

Showing the changes to scripts (1 of 1 file). Show all

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
683683 return 0;
684684 }
685685
686−static void handle_modversions(struct module *mod, struct elf_info *info,
687− Elf_Sym *sym, const char *symname)
686+static void handle_symbol(struct module *mod, struct elf_info *info,
687+ const Elf_Sym *sym, const char *symname)
688688 {
689689 unsigned int crc;
690690 enum export export;
@@ -2051,7 +2051,7 @@ static void read_symbols(const char *modname) · 1360 unmodified lines
20512051 for (sym = info.symtab_start; sym < info.symtab_stop; sym++) {
20522052 symname = remove_dot(info.strtab + sym->st_name);
20532053
2054− handle_modversions(mod, &info, sym, symname);
2054+ handle_symbol(mod, &info, sym, symname);
20552055 handle_moddevtable(mod, &info, sym, symname);
20562056 }
20572057

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