linux-stable/scripts/mod
Masahiro Yamada 70f30cfe5b modpost: use read_text_file() and get_line() for reading text files
grab_file() mmaps a file, but it is not so efficient here because
get_next_line() copies every line to the temporary buffer anyway.

read_text_file() and get_line() are simpler. get_line() exploits the
library function strchr().

Going forward, the missing *.symvers or *.cmd is a fatal error.
This should not happen because scripts/Makefile.modpost guards the
-i option files with $(wildcard $(input-symdump)).

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
2020-06-06 23:38:13 +09:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
devicetable-offsets.c Char/Misc driver patches for 5.7-rc1 2020-04-03 13:22:40 -07:00
empty.c
file2alias.c Char/Misc driver patches for 5.7-rc1 2020-04-03 13:22:40 -07:00
Makefile kbuild: rename hostprogs-y/always to hostprogs/always-y 2020-02-04 01:53:07 +09:00
mk_elfconfig.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
modpost.c modpost: use read_text_file() and get_line() for reading text files 2020-06-06 23:38:13 +09:00
modpost.h modpost: add read_text_file() and get_line() helpers 2020-06-06 23:38:12 +09:00
sumversion.c modpost: use read_text_file() and get_line() for reading text files 2020-06-06 23:38:13 +09:00