]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kbuild: do not set -w for vmlinux.o modpost
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 25 Mar 2021 18:54:10 +0000 (03:54 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 1 Apr 2021 16:28:04 +0000 (01:28 +0900)
commita0cc06cba32d73b3043772bb0a856b8706fbc75f
tree01b143765d6d02c295546c6875b3643b70e305bc
parent1c21ac0990084da45747d5c1922c46c6d0469c4d
kbuild: do not set -w for vmlinux.o modpost

The -w option is meaningless for the first pass of modpost (vmlinux.o).

We know there are unresolved symbols in vmlinux.o, hence we skip
check_exports() and other checks when mod->is_vmlinux is set.

See the following part in the for-loop.

    if (mod->is_vmlinux || mod->from_dump)
            continue;

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