summaryrefslogtreecommitdiff
path: root/scripts/package
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-06-01 14:57:20 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2020-06-06 23:38:13 +0900
commit70f30cfe5b892fcb7f98e7df72ed6ccfe3225628 (patch)
tree5c5026083bab0d89b97a1e9f33a363abd3bd162b /scripts/package
parent7c8f5662c502b7b967399fef8a64532ec43b063d (diff)
downloadlwn-70f30cfe5b892fcb7f98e7df72ed6ccfe3225628.tar.gz
lwn-70f30cfe5b892fcb7f98e7df72ed6ccfe3225628.zip
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>
Diffstat (limited to 'scripts/package')
0 files changed, 0 insertions, 0 deletions