]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
scripts/kallsyms: shrink table before sorting it
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 23 Nov 2019 16:04:31 +0000 (01:04 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 25 Nov 2019 12:01:14 +0000 (21:01 +0900)
commit5e5c4fa787453292d3deefd59129384d391b7f45
treeae48bb0f1fbf720190a65d66835922bdc8436ebb
parent21915eca088dc271c970e8351290e83d938114ac
scripts/kallsyms: shrink table before sorting it

Currently, build_initial_tok_table() trims unused symbols, but it is
called after sort_symbols().

It is not efficient to sort the huge table that contains unused entries.
Shrink the table before sorting it.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/kallsyms.c