Re: [PATCH] kbuild: Fix running modpost with musl libc

From: Christopher Schramm
Date: Wed Jan 04 2023 - 03:35:32 EST


This change seems to break expected symbol warnings when building an external module against a kernel prepared with modules_prepare.

The build used to show

WARNING: Module.symvers is missing.
Modules may not have dependencies or modversions.
You may get many unresolved symbol warnings.

followed by those many unresolved symbol warnings.

6.2-rc2 still shows that warning but the unresolved symbol messages are now errors and the build fails (at scripts/Makefile.modpost:137). This seems to happen due to -T getting added.