Re: [PATCH 0/2] kbuild: userprogs: also inherit byte order and ABI from kernel
From: Nathan Chancellor
Date: Thu Aug 14 2025 - 14:47:25 EST
On Wed, Aug 13, 2025 at 07:43:39AM +0200, Thomas Weißschuh wrote:
> Make sure the byte order and ABI of the userprogs matches the one of the
> kernel, similar to how the bit size is handled.
> Otherwise the userprogs may not be executable.
> This happens for example on powerpc little endian, or riscv32.
>
> These patches where originally part of my series "kunit: Introduce UAPI
> testing framework" [0], but that isn't going anywhere right now and the
> patches are useful on their own.
>
> [0] kunit: Introduce UAPI testing framework
> ---
> Thomas Weißschuh (2):
> kbuild: userprogs: avoid duplication of flags inherited from kernel
> kbuild: userprogs: also inherit byte order and ABI from kernel
Seems reasonable to me. Should I fast track this via kbuild-fixes or
should I just apply it to kbuild-next? I am guessing you only noticed
this in the context of developing [0] so it might not be a big issue in
the wild?
Cheers,
Nathan