]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: strip .o from modname before calling new_module()
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 1 Jun 2020 05:57:29 +0000 (14:57 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 6 Jun 2020 14:39:20 +0000 (23:39 +0900)
commit9db24944602446a09e089a3626dd6f1544b12cc0
tree9448b9e414cb9152333294e4c51817bd35a02b6f
parentb5e95f1b55ff4f5925e1eaee709f2bfee9ca27f5
modpost: strip .o from modname before calling new_module()

new_module() conditionally strips the .o because the modname has .o
suffix when it is called from read_symbols(), but no .o when it is
called from read_dump().

It is clearer to strip .o in read_symbols().

I also used flexible-array for mod->name.

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