Skip to content
Commit a82f794c authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

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: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 858b937d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment