kbuild: uapi: also test UAPI headers against C++ compilers
Get series with b4
b4 am [email protected] change-id 20260223-kbuild-uapi-c-18002c9d7ca3Versions newest first
- v2 Latest5 patches 1 replyIn review
- v1 RFC5 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- Rebase on kbuild-next.
- Pick up tags.
- Use $(CLANG_FLAGS) in cc-can-compile-cxx.
- Link to v1: https://patch.msgid.link/[email protected]
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | kbuild: uapi: move some compiler arguments out of the command definitionusr/ | +4 | 0 replies | |
| 2/5 | kbuild: uapi: move all include path flags togetherusr/ | +2 | 0 replies | |
| 3/5 | kbuild: uapi: handle UML in architecture-specific exclusion listsusr/ | +6 | 0 replies | |
| 4/5 | kbuild: uapi: provide a C++ compatible dummy definition of NULLusr/ | +5 | 0 replies | |
| 5/5 | kbuild: uapi: also test UAPI headers against C++ compilersusr/ | +28 | 0 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Nathan Chancellor |
|---|---|
| 1/5 | R-b |
| 2/5 | R-b |
| 3/5 | R-b |
| 4/5 | R-b |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/5] 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.
There was a previous attempt by David Howells[0], but today with the existing UAPI testing infrastructure the implementation is a bit nicer. This series does not derive from David's, as I found it only after writing my patches.
[0] https://lore.kernel.org/lkml/[email protected]/
This depends on my other series "kbuild: uapi: remove usage of toolchain headers", which is currently in kbuild-next-unstable.
---
Changes in v2:
- Rebase on kbuild-next.
- Pick up tags.
- Use $(CLANG_FLAGS) in cc-can-compile-cxx.
- Link to v1: https://patch.msgid.link/[email protected]
---
Thomas Weißschuh (5):
kbuild: uapi: move some compiler arguments out of the command definition
kbuild: uapi: move all include path flags together
kbuild: uapi: handle UML in architecture-specific exclusion lists
kbuild: uapi: provide a C++ compatible dummy definition of NULL
kbuild: uapi: also test UAPI headers against C++ compilers
usr/dummy-include/stddef.h | 5 +++++ usr/include/Makefile | 47 ++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 44 insertions(+), 8 deletions(-)
---
base-commit: 0d3fccf68d9873a3c824fb70be0dbb2c4642aa90
change-id: 20260223-kbuild-uapi-c-18002c9d7ca3
Best regards,
Signature · 1 line
Thomas Weißschuh <[email protected]>