modpost: show warning if vmlinux is not found when processing modules
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 1 Jun 2020 05:57:13 +0000 (14:57 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 6 Jun 2020 14:38:12 +0000 (23:38 +0900)
commit7e8a3235823bcb779acf92de630edd5ddffaf886
tree5c070389dfde04dff4c84a4bf80af1f1214d1029
parent436b2ac603d58504f38041a0cd8adb5aeace992b
modpost: show warning if vmlinux is not found when processing modules

check_exports() does not print warnings about unresolved symbols if
vmlinux is missing because there would be too many.

This situation happens when you do 'make modules' from the clean
tree, or compile external modules against a kernel tree that has
not been completely built.

It is dangerous to not check unresolved symbols because you might be
building useless modules. At least it should be warned.

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