Re: [PATCH] kbuild: prefer ${NM} in check-function-names.sh

From: Nicolas Schier

Date: Wed Jan 14 2026 - 08:27:56 EST



On Thu, 18 Dec 2025 17:58:06 +0000, Carlos Llamas wrote:
> The check-function-names.sh scripts invokes 'nm' directly and this can
> be problematic during cross-compilation when the toolchain is different
> from the system's default (e.g. LLVM=1).
>
> scripts/check-function-names.sh: nm: not found
>
> Let's prefer the ${NM} variable which is already set by kbuild. However,
> still fallback to plain 'nm' to ensure the script is still usable when
> called directly.
>
> [...]

Applied, thanks!

[1/1] kbuild: prefer ${NM} in check-function-names.sh
https://git.kernel.org/kbuild/c/946d4623

Best regards,
--
Nicolas