Home
last modified time | relevance | path

Searched hist:"70 f30cfe5b892fcb7f98e7df72ed6ccfe3225628" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/scripts/mod/
H A Dsumversion.cdiff 70f30cfe5b892fcb7f98e7df72ed6ccfe3225628 Mon Jun 01 00:57:20 CDT 2020 Masahiro Yamada <masahiroy@kernel.org> 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>
H A Dmodpost.cdiff 70f30cfe5b892fcb7f98e7df72ed6ccfe3225628 Mon Jun 01 00:57:20 CDT 2020 Masahiro Yamada <masahiroy@kernel.org> 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>