Skip to content
Commit 735aec59 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

kbuild: readd -w option when vmlinux.o or Module.symver is missing

Commit 63ffe00d ("kbuild: Fix running modpost with musl libc")
accidentally turned the unresolved symbol warnings into errors when
vmlinux.o (for in-tree builds) or Module.symver (for external module
builds) is missing.

In those cases, unresolved symbols are expected, but the -w option
is not set because 'missing-input' is referenced before set.

Move $(missing-input) back to the original place. This should be fine
for musl libc because vmlinux.o and -w are not added at the same time.

With this change, -w may be passed twice, but it is not a big deal.

Link: https://lore.kernel.org/all/b56a03b8-2a2a-f833-a5d2-cdc50a7ca2bb@cschramm.eu/


Fixes: 63ffe00d ("kbuild: Fix running modpost with musl libc")
Reported-by: default avatarChristopher Schramm <debian@cschramm.eu>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Tested-by: default avatarSamuel Holland <samuel@sholland.org>
parent a53da43d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment