[PATCH 00/29] modpost: various fixes, cleanups, optimizations

Masahiro Yamada
2020-05-17T09:50:58Z

Masahiro Yamada (29):
modpost: drop RCS/CVS $Revision handling in MODULE_VERSION()
modpost: do not call get_modinfo() for vmlinux
modpost: add read_text_file() and get_line() helpers
modpost: fix potential mmap'ed file overrun in get_src_version()
modpost: re-add warning about missing *.mod file
modpost: avoid false-positive file open error
modpost: use read_text_file() and get_line() for reading text files
modpost: remove get_next_text() and make {grab,release_}file static
kbuild: disallow multi-word in M= or KBUILD_EXTMOD
modpost: move -T option close to the modpost command
modpost: pass -N option only for modules modpost
modpost: move external module options
modpost: load KBUILD_EXTRA_SYMBOLS files in order
modpost: track if the symbol origin is a dump file or ELF object
modpost: allow to pass -i option multiple times remove -e option
modpost: rename ext_sym_list to dump_list
modpost: re-add -e to set external_module flag
modpost: show warning if vmlinux is not found when processing modules
modpost: show warning if it fails to read symbol dump file
modpost: generate vmlinux.symvers and reuse it for the second modpost
modpost: remove -s option
modpost: remove mod->is_dot_o struct member
modpost: remove is_vmlinux() call in check_for_{gpl_usage,unused}()
modpost: add mod->is_vmlinux struct member
modpost: remove mod->skip struct member
modpost: set have_vmlinux in new_module()
modpost: strip .o from modname before calling new_module()
modpost: remove is_vmlinux() helper
modpost: change elf_info->size to size_t

.gitignore | 1 +
Makefile | 15 +-
scripts/Makefile.modpost | 29 ++--
scripts/link-vmlinux.sh | 2 -
scripts/mod/modpost.c | 309 ++++++++++++++++++---------------------
scripts/mod/modpost.h | 17 +--
scripts/mod/sumversion.c | 114 ++++-----------
7 files changed, 195 insertions(+), 292 deletions(-)

--
2.25.1