modpost: trim leading spaces when processing source files list
authorRadek Krejci <radek.krejci@oracle.com>
Wed, 14 Feb 2024 09:14:07 +0000 (10:14 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 14 Feb 2024 21:57:19 +0000 (06:57 +0900)
commit5d9a16b2a4d9e8fa028892ded43f6501bc2969e5
tree22832fd71751345b7216c075f77de7912dc1f467
parentdae4a0171e25884787da32823b3081b4c2acebb2
modpost: trim leading spaces when processing source files list

get_line() does not trim the leading spaces, but the
parse_source_files() expects to get lines with source files paths where
the first space occurs after the file path.

Fixes: 70f30cfe5b89 ("modpost: use read_text_file() and get_line() for reading text files")
Signed-off-by: Radek Krejci <radek.krejci@oracle.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/mod/sumversion.c