modpost: propagate W=1 build option to modpost
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 6 Jun 2023 09:41:59 +0000 (18:41 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 7 Jun 2023 13:41:08 +0000 (22:41 +0900)
commit20ff36856fe00879f82de71fe6f1482ca1b72334
tree663915b917dc9bed51678c028f89ffacc37457c4
parent7f8256ae0efba344a9b113036b1d545a1f6cdaa7
modpost: propagate W=1 build option to modpost

"No build warning" is a strong requirement these days, so you must fix
all issues before enabling a new warning flag.

We often add a new warning to W=1 first so that the kbuild test robot
blocks new breakages.

This commit allows modpost to show extra warnings only when W=1
(or KBUILD_EXTRA_WARN=1) is given.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
scripts/Makefile.modpost
scripts/mod/modpost.c