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

modpost: remove is_vmlinux() call in check_for_{gpl_usage,unused}()



check_exports() is never called for vmlinux because mod->skip is set
for vmlinux.

Hence, check_for_gpl_usage() and check_for_unused() are not called
for vmlinux, either. is_vmlinux() is always false here.

Remove the is_vmlinux() calls, and hard-code the ".ko" suffix.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 3379576d
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