commit | a82f794c41ab51f088af325f5d9acba30a6facdb | [log] [tgz] |
---|---|---|
author | Masahiro Yamada <masahiroy@kernel.org> | Mon Jun 01 14:57:29 2020 +0900 |
committer | Masahiro Yamada <masahiroy@kernel.org> | Sat Jun 06 23:39:20 2020 +0900 |
tree | 9448b9e414cb9152333294e4c51817bd35a02b6f | |
parent | 858b937d289bbf7551d496100c1fa9efcad5796e [diff] |
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>