]> www.infradead.org Git - users/jedix/linux-maple.git/commit
modpost: get the *.mod file path more simply
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 28 Aug 2021 09:50:59 +0000 (18:50 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 29 Aug 2021 23:52:46 +0000 (08:52 +0900)
commitf9a9f624f646987038dfefd80901127fc752f5ea
tree9cc2997554dbc8e18897e56389468806a5f56cb9
parent26d5313d02e4c5ca05bbf01e162abad7eebda906
modpost: get the *.mod file path more simply

get_src_version() strips 'o' or 'lto.o' from the end of the object file
path (so, postfixlen is 1 or 5), then adds 'mod'.

If you look at the code closely, mod->name already holds the base path
with the extension stripped.

Most of the code changes made by commit 7ac204b545f2 ("modpost: lto:
strip .lto from module names") was actually unneeded.

sumversion.c does not need strends(), so it can get back local in
modpost.c again.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/mod/modpost.c
scripts/mod/modpost.h
scripts/mod/sumversion.c