]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: remove is_vmlinux() call in check_for_{gpl_usage,unused}()
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 1 Jun 2020 05:57:25 +0000 (14:57 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 6 Jun 2020 14:38:13 +0000 (23:38 +0900)
commit9332160177d79dac8102b656eef7740742a7cd74
treea749cb26672b6a7914684d4a28ba961830dba857
parentf5e1d509f5bc7d72a5b1a1dab458c4a6a82d854d
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: Masahiro Yamada <masahiroy@kernel.org>
scripts/mod/modpost.c