[PATCH 0/5] kbuild: uapi: improvements to header testing

Thomas Weißschuh posted 5 patches 1 month, 2 weeks ago
arch/hexagon/include/{uapi => }/asm/signal.h |  0
init/Kconfig                                 |  2 +-
usr/include/Makefile                         | 87 +++++++++++++++++++++++++++-
3 files changed, 87 insertions(+), 2 deletions(-)
[PATCH 0/5] kbuild: uapi: improvements to header testing
Posted by Thomas Weißschuh 1 month, 2 weeks ago
Also validate that UAPI headers do not depend on libc and remove the
dependency on CC_CAN_LINK.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
Thomas Weißschuh (5):
      kbuild: uapi: validate that headers do not use libc
      hexagon: Drop invalid UAPI header asm/signal.h
      kbuild: uapi: don't compile test bpf_perf_event.h on xtensa
      kbuild: uapi: split out command conditions into variables
      kbuild: uapi: drop dependency on CC_CAN_LINK

 arch/hexagon/include/{uapi => }/asm/signal.h |  0
 init/Kconfig                                 |  2 +-
 usr/include/Makefile                         | 87 +++++++++++++++++++++++++++-
 3 files changed, 87 insertions(+), 2 deletions(-)
---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20251203-uapi-nostdinc-64edce85d464

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh@linutronix.de>

Re: [PATCH 0/5] kbuild: uapi: improvements to header testing
Posted by Nathan Chancellor 1 month ago
On Tue, 23 Dec 2025 08:04:07 +0100, Thomas Weißschuh wrote:
> Also validate that UAPI headers do not depend on libc and remove the
> dependency on CC_CAN_LINK.
> 
> 

Applied to

  https://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git kbuild-next-unstable

Thanks!

[1/5] kbuild: uapi: validate that headers do not use libc
      https://git.kernel.org/kbuild/c/6059b880a93c3
[2/5] hexagon: Drop invalid UAPI header asm/signal.h
      https://git.kernel.org/kbuild/c/cc45d2ea5cfb8
[3/5] kbuild: uapi: don't compile test bpf_perf_event.h on xtensa
      https://git.kernel.org/kbuild/c/e2772ba5f43df
[4/5] kbuild: uapi: split out command conditions into variables
      https://git.kernel.org/kbuild/c/4ac85d9bc73ed
[5/5] kbuild: uapi: drop dependency on CC_CAN_LINK
      https://git.kernel.org/kbuild/c/e3970d77ec504

Please look out for regression or issue reports or other follow up
comments, as they may result in the patch/series getting dropped or
reverted. Patches applied to an "unstable" branch are accepted pending
wider testing in -next and any post-commit review; they will generally
be moved to the main branch in a week if no issues are found.

Best regards,
-- 
Nathan Chancellor <nathan@kernel.org>

Re: [PATCH 0/5] kbuild: uapi: improvements to header testing
Posted by Nathan Chancellor 1 month, 1 week ago
Hi Thomas,

On Tue, Dec 23, 2025 at 08:04:07AM +0100, Thomas Weißschuh wrote:
> Also validate that UAPI headers do not depend on libc and remove the
> dependency on CC_CAN_LINK.
> 
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
> ---
> Thomas Weißschuh (5):
>       kbuild: uapi: validate that headers do not use libc
>       hexagon: Drop invalid UAPI header asm/signal.h
>       kbuild: uapi: don't compile test bpf_perf_event.h on xtensa
>       kbuild: uapi: split out command conditions into variables
>       kbuild: uapi: drop dependency on CC_CAN_LINK
> 
>  arch/hexagon/include/{uapi => }/asm/signal.h |  0
>  init/Kconfig                                 |  2 +-
>  usr/include/Makefile                         | 87 +++++++++++++++++++++++++++-
>  3 files changed, 87 insertions(+), 2 deletions(-)

This seems like a great improvement to the UAPI header testing. I don't
see any immediate problems and it works for me in my brief local
testing. I will give a week or so for comments before I apply this to
kbuild-next (plus -next should be operating at that point).

Cheers,
Nathan