| dcc99abe | 16-Mar-2026 |
Thomas Weißschuh <linux@weissschuh.net> |
kbuild: uapi: also test UAPI headers against C++ compilers
C++ language requirements differ from those of C.
Also test the headers against C++ compilers to make sure no errors creep in accidentally
kbuild: uapi: also test UAPI headers against C++ compilers
C++ language requirements differ from those of C.
Also test the headers against C++ compilers to make sure no errors creep in accidentally.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Link: https://patch.msgid.link/20260316-kbuild-uapi-c-v2-5-35d6d0ed863f@weissschuh.net Signed-off-by: Nicolas Schier <nsc@kernel.org>
show more ...
|
| b4ec38cb | 16-Mar-2026 |
Thomas Weißschuh <linux@weissschuh.net> |
kbuild: uapi: handle UML in architecture-specific exclusion lists
When building User Mode Linux SRCARCH is set to 'um', while the actual underlying architecture is provided in HEADER_ARCH.
Allow th
kbuild: uapi: handle UML in architecture-specific exclusion lists
When building User Mode Linux SRCARCH is set to 'um', while the actual underlying architecture is provided in HEADER_ARCH.
Allow the exclusion lists to work on UML by comparing against HEADER_ARCH when that is available.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Link: https://patch.msgid.link/20260316-kbuild-uapi-c-v2-3-35d6d0ed863f@weissschuh.net Signed-off-by: Nicolas Schier <nsc@kernel.org>
show more ...
|
| cf822413 | 16-Mar-2026 |
Thomas Weißschuh <linux@weissschuh.net> |
kbuild: uapi: move all include path flags together
The argument to add the root of the UAPI header tree to the include path is separated from the other arguments concerning the include path.
Move a
kbuild: uapi: move all include path flags together
The argument to add the root of the UAPI header tree to the include path is separated from the other arguments concerning the include path.
Move all include path arguments together for more consistency and balanced line lengths.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Link: https://patch.msgid.link/20260316-kbuild-uapi-c-v2-2-35d6d0ed863f@weissschuh.net Signed-off-by: Nicolas Schier <nsc@kernel.org>
show more ...
|
| 510c7a57 | 27-Feb-2026 |
Thomas Weißschuh <linux@weissschuh.net> |
kbuild: uapi: simplify libc dependency logic
The only left user of the condition inverts it.
Invert the condition completely and simplify its user.
Signed-off-by: Thomas Weißschuh <linux@weissschu
kbuild: uapi: simplify libc dependency logic
The only left user of the condition inverts it.
Invert the condition completely and simplify its user.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Reviewed-by: Nicolas Schier <nsc@kernel.org> Tested-by: Nicolas Schier <nsc@kernel.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://patch.msgid.link/20260227-kbuild-uapi-libc-v1-8-c17de0d19776@weissschuh.net Signed-off-by: Nicolas Schier <nsc@kernel.org>
show more ...
|
| 0ef1b7a6 | 27-Feb-2026 |
Thomas Weißschuh <linux@weissschuh.net> |
kbuild: uapi: only use dummy-include for headers which use libc
The headers which do not rely on libc are using built using -nostdinc. For them the dummy headers are pointless.
Signed-off-by: Thoma
kbuild: uapi: only use dummy-include for headers which use libc
The headers which do not rely on libc are using built using -nostdinc. For them the dummy headers are pointless.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Reviewed-by: Nicolas Schier <nsc@kernel.org> Tested-by: Nicolas Schier <nsc@kernel.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://patch.msgid.link/20260227-kbuild-uapi-libc-v1-5-c17de0d19776@weissschuh.net Signed-off-by: Nicolas Schier <nsc@kernel.org>
show more ...
|
| 60a16bee | 27-Feb-2026 |
Thomas Weißschuh <linux@weissschuh.net> |
kbuild: uapi: completely exclude linux/bpf_perf_event.h on nios2
This header is actually not buildable on nios. As nobody built nios2 with CONFIG_CC_CAN_LINK=y so far, this produced no errors.
Sign
kbuild: uapi: completely exclude linux/bpf_perf_event.h on nios2
This header is actually not buildable on nios. As nobody built nios2 with CONFIG_CC_CAN_LINK=y so far, this produced no errors.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Reviewed-by: Nicolas Schier <nsc@kernel.org> Tested-by: Nicolas Schier <nsc@kernel.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://patch.msgid.link/20260227-kbuild-uapi-libc-v1-4-c17de0d19776@weissschuh.net Signed-off-by: Nicolas Schier <nsc@kernel.org>
show more ...
|
| 45bd8643 | 27-Feb-2026 |
Thomas Weißschuh <linux@weissschuh.net> |
kbuild: uapi: deduplicate linux/bpf_perf_event.h exclusions
This header is excluded for multiple architectures. Use a single exclusion for all of them.
Signed-off-by: Thomas Weißschuh <linux@weisss
kbuild: uapi: deduplicate linux/bpf_perf_event.h exclusions
This header is excluded for multiple architectures. Use a single exclusion for all of them.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Reviewed-by: Nicolas Schier <nsc@kernel.org> Tested-by: Nicolas Schier <nsc@kernel.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://patch.msgid.link/20260227-kbuild-uapi-libc-v1-3-c17de0d19776@weissschuh.net Signed-off-by: Nicolas Schier <nsc@kernel.org>
show more ...
|
| 2a0a3080 | 23-Dec-2025 |
Thomas Weißschuh <thomas.weissschuh@linutronix.de> |
kbuild: uapi: drop dependency on CC_CAN_LINK
The header tests try to compile each header. Some UAPI headers depend on libc headers so they need a full userspace toolchain to build. This dependency i
kbuild: uapi: drop dependency on CC_CAN_LINK
The header tests try to compile each header. Some UAPI headers depend on libc headers so they need a full userspace toolchain to build. This dependency is expressed in kconfig as a dependency on CC_CAN_LINK. Many kernel builds do not satisfy CC_CAN_LINK as they only use a minimal kernel (cross-) compiler. In those configurations the UAPI headers are not tested at all.
However most UAPI headers do not even depend on any libc headers, and such dependencies are undesired in any case. Also the static analysis performed by headers_check.pl does not need CC_CAN_LINK.
Drop the hard dependency on CC_CAN_LINK and instead skip the affected compilation step for exactly those headers which require libc.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Link: https://patch.msgid.link/20251223-uapi-nostdinc-v1-5-d91545d794f7@linutronix.de Signed-off-by: Nathan Chancellor <nathan@kernel.org>
show more ...
|
| 4ac85d9b | 23-Dec-2025 |
Thomas Weißschuh <thomas.weissschuh@linutronix.de> |
kbuild: uapi: split out command conditions into variables
The condition logic will become a bit more complicated.
Split them out into dedicated variables so they stay readable.
Signed-off-by: Thom
kbuild: uapi: split out command conditions into variables
The condition logic will become a bit more complicated.
Split them out into dedicated variables so they stay readable.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Link: https://patch.msgid.link/20251223-uapi-nostdinc-v1-4-d91545d794f7@linutronix.de Signed-off-by: Nathan Chancellor <nathan@kernel.org>
show more ...
|
| e2772ba5 | 23-Dec-2025 |
Thomas Weißschuh <thomas.weissschuh@linutronix.de> |
kbuild: uapi: don't compile test bpf_perf_event.h on xtensa
The xtensa UAPI headers do not provide 'struct pt_regs', triggering an error:
usr/include/linux/bpf_perf_event.h:14:28: error: field 'reg
kbuild: uapi: don't compile test bpf_perf_event.h on xtensa
The xtensa UAPI headers do not provide 'struct pt_regs', triggering an error:
usr/include/linux/bpf_perf_event.h:14:28: error: field 'regs' has incomplete type
Disable the header tests for this file on xtensa.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Link: https://patch.msgid.link/20251223-uapi-nostdinc-v1-3-d91545d794f7@linutronix.de Signed-off-by: Nathan Chancellor <nathan@kernel.org>
show more ...
|
| 2d7eda1d | 23-Oct-2025 |
Nathan Chancellor <nathan@kernel.org> |
kbuild: uapi: Drop types.h check from headers_check.pl
Since commit d6fc9fcbaa65 ("kbuild: compile-test exported headers to ensure they are self-contained"), the UAPI headers are compile tested stan
kbuild: uapi: Drop types.h check from headers_check.pl
Since commit d6fc9fcbaa65 ("kbuild: compile-test exported headers to ensure they are self-contained"), the UAPI headers are compile tested standalone with the compiler. This compile testing will catch a missing include of types.h, making the types.h checking in headers_check.pl originally added in commit 483b41218fa9 ("kbuild: add checks for include of linux/types in userspace headers") obsolete.
Signed-off-by: Nathan Chancellor <nathan@kernel.org> Reviewed-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Link: https://patch.msgid.link/20251023-headers-pl-drop-check-sizes-v1-1-18bd21cf8f5e@kernel.org Signed-off-by: Nicolas Schier <nsc@kernel.org>
show more ...
|
| b8d762c9 | 13-Aug-2025 |
Thomas Weißschuh <thomas.weissschuh@linutronix.de> |
kbuild: uapi: upgrade check_declarations() warning to error
No problematic declarations exist anymore.
Make sure it stays this way.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de
kbuild: uapi: upgrade check_declarations() warning to error
No problematic declarations exist anymore.
Make sure it stays this way.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Reviewed-by: Nicolas Schier <nsc@kernel.org> Link: https://lore.kernel.org/r/20250813-kbuild-hdrtest-fixes-v2-5-8a7921ca3a03@linutronix.de Signed-off-by: Nathan Chancellor <nathan@kernel.org>
show more ...
|
| c3a9d74e | 13-Aug-2025 |
Thomas Weißschuh <thomas.weissschuh@linutronix.de> |
kbuild: uapi: upgrade check_sizetypes() warning to error
No problematic type usages exist anymore.
Make sure it stays this way.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Re
kbuild: uapi: upgrade check_sizetypes() warning to error
No problematic type usages exist anymore.
Make sure it stays this way.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Reviewed-by: Nicolas Schier <nsc@kernel.org> Link: https://lore.kernel.org/r/20250813-kbuild-hdrtest-fixes-v2-4-8a7921ca3a03@linutronix.de Signed-off-by: Nathan Chancellor <nathan@kernel.org>
show more ...
|
| 24b1bd64 | 13-Aug-2025 |
Thomas Weißschuh <thomas.weissschuh@linutronix.de> |
kbuild: uapi: upgrade warning on asm/types.h inclusion to error
No usages of '#include <asm/types.h> in the UAPI headers exist anymore.
Make sure it stays this way.
Add a semicolon to the end of t
kbuild: uapi: upgrade warning on asm/types.h inclusion to error
No usages of '#include <asm/types.h> in the UAPI headers exist anymore.
Make sure it stays this way.
Add a semicolon to the end of the previous printf call to keep the syntax valid.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Reviewed-by: Nicolas Schier <nsc@kernel.org> Link: https://lore.kernel.org/r/20250813-kbuild-hdrtest-fixes-v2-3-8a7921ca3a03@linutronix.de Signed-off-by: Nathan Chancellor <nathan@kernel.org>
show more ...
|
| 3788d69d | 13-Aug-2025 |
Thomas Weißschuh <thomas.weissschuh@linutronix.de> |
kbuild: uapi: fail header test on compiler warnings
Compiler warnings also indicate issues with the headers.
Make sure they don't go unnoticed.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@l
kbuild: uapi: fail header test on compiler warnings
Compiler warnings also indicate issues with the headers.
Make sure they don't go unnoticed.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Reviewed-by: Nicolas Schier <nsc@kernel.org> Link: https://lore.kernel.org/r/20250813-kbuild-hdrtest-fixes-v2-2-8a7921ca3a03@linutronix.de Signed-off-by: Nathan Chancellor <nathan@kernel.org>
show more ...
|