Re: [PATCH v2 00/11] Start porting UML to nolibc

Thomas Weißschuh
2025-09-20T09:30:25Z

On 2025-09-19 17:34:09+0200, Benjamin Berg wrote:
> From: Benjamin Berg <benjamin.berg@intel.com>
>
> This patchset is an attempt to start a nolibc port of UML. The goal is
> to port UML to use nolibc in smaller chunks to make the switch more
> manageable.
>
> There are three parts to this patchset:
> * Two patches to use tools/include headers instead of kernel headers
> for userspace files.
> * A few nolibc fixes and a new NOLIBC_NO_STARTCODE compile flag for it
> * Finally nolibc build support for UML and switching two files while
> adding the appropriate support in nolibc itself.
>
> v1 of this patchset was
> https://lore.kernel.org/all/20250915071115.1429196-1-benjamin@sipsolutions.net/
>
> Changes in v2:
> - add sys/uio.h and sys/ptrace.h to nolibc
> - Use NOLIBC_NO_RUNTIME to disable nolibc startup code
> - Fix out-of-tree build
> - various small improvements and cleanups
>
> Should the nolibc changes be merged separately or could everything go
> through the same branch?

Both work for me. But only for the next cycle.

> Also, what about tools/include/linux/compiler.h? It seems that was added
> for the tracing code, but it is not clear to me who might ACK that fix.

Some files in tools/ are orphaned. In the past I got some reviews, included
the change in my tree and mentioned it to Linus in my regular pull request.

(...)

Thomas