Re: [PATCH 0/9] kbuild: uapi: remove usage of toolchain headers

From: Arnd Bergmann

Date: Fri Feb 27 2026 - 05:05:22 EST


On Fri, Feb 27, 2026, at 10:38, Thomas Weißschuh wrote:
> On Fri, Feb 27, 2026 at 10:18:41AM +0100, Arnd Bergmann wrote:
>> On Fri, Feb 27, 2026, at 07:37, Thomas Weißschuh wrote:
>>
>> I had toyed around with a similar series, using a slightly different
>> approach of always using the in-kernel nolibc headers, and making
>> those compile across all architectures (using empty stubs for those
>> that are missing syscall entry functions).
>>
>> I don't care much which way we do this as long as we can build test
>> the headers, but I wonder what your reason was for picking this
>> approach over the other.
>
> My goal is to reduce the reliance of the UAPI headers on libc ones.
> Hopefully we can remove libc usages from the UAPI headers and then also
> drop the compatibility bits from the stub headers. If we use the full nolibc
> the message to UAPI authors would not be clear and new dependencies may be
> introduced again.

Good point, thanks for the clarification!

Arnd