kbuild: do not automatically add -w option to modpost
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 26 Jan 2023 02:26:43 +0000 (11:26 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 5 Feb 2023 09:51:22 +0000 (18:51 +0900)
commit5573b4daa26a0cf15aa0fecd7f1be16e0b6157bc
tree3cb51822a6befebe5a70aecc1606be2f7897eb92
parent4e3feaad6ff8a7a57e3bf3308a93c93e3a2e17a6
kbuild: do not automatically add -w option to modpost

When there is a missing input file (vmlinux.o or Module.symvers), you
are likely to get a ton of unresolved symbols.

Currently, Kbuild automatically adds the -w option to allow module builds
to continue with warnings instead of errors.

This may not be what the user expects because it is generally more useful
to catch all possible issues at build time instead of at run time.

Let's not do what the user did not ask.

If you still want to build modules anyway, you can proceed by explicitly
setting KBUILD_MODPOST_WARN=1. Since you may miss a real issue, you need
to be aware of what you are doing.

Suggested-by: William McVicker <willmcvicker@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Will McVicker <willmcvicker@google.com>
scripts/Makefile.modpost