Skip to content

UAPI: make more exported headers self-contained, and put them into test coverage

Masahiro Yamada linux-arch linux-kbuild lkml llvm oe-kbuild-all virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 27 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8agpgart.h: do not include <stdlib.h> from exported headerinclude/uapi/linux/agpgart.h+4 -52 replies
2/8kbuild: prevent exported headers from including <stdlib.h>, <stdbool.h>usr/dummy-include/stdbool.h usr/dummy-include/stdlib.h usr/include/Makefile+15 -15 replies
3/8riscv: add linux/bpf_perf_event.h to UAPI compile-test coverageusr/include/Makefile+0 -41 reply
4/8mips: add asm/stat.h to UAPI compile-test coveragearch/mips/include/uapi/asm/stat.h usr/include/Makefile+10 -141 reply
5/8powerpc: add asm/stat.h to UAPI compile-test coveragearch/powerpc/include/uapi/asm/stat.h usr/include/Makefile+5 -61 reply
6/8sparc: add asm/stat.h to UAPI compile-test coveragearch/sparc/include/uapi/asm/stat.h usr/include/Makefile+6 -71 reply
7/8posix_types.h: add __kernel_uintptr_t to UAPI posix_types.harch/h8300/include/uapi/asm/posix_types.h arch/s390/include/uapi/asm/posix_types.h arch/sparc/include/uapi/asm/posix_types.h +4 more+9 -12 replies
8/8virtio_ring.h: do not include <stdint.h> from exported headerinclude/uapi/linux/virtio_ring.h+2 -410 replies

Reviews trailers per patch

7 of 8 patches have a Reviewed-by or Acked-by.

PatchGreg Kroah-HartmanChristoph HellwigNick DesaulniersMichael S. Tsirkin
1/8R-b R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8
8/8A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/8] UAPI: make more exported headers self-contained, and put them into test coverage

Here are more efforts to put more headers to UAPI compile testing (CONFIG_UAPI_HEADER_TEST).

I am sending this series to Arnd because he has deep knowledge for the kernel APIs and manages asm-generic pull requests.

Masahiro Yamada (8):
agpgart.h: do not include <stdlib.h> from exported header
kbuild: prevent exported headers from including <stdlib.h>,

    <stdbool.h>

riscv: add linux/bpf_perf_event.h to UAPI compile-test coverage
mips: add asm/stat.h to UAPI compile-test coverage
powerpc: add asm/stat.h to UAPI compile-test coverage
sparc: add asm/stat.h to UAPI compile-test coverage posix_types.h: add __kernel_uintptr_t to UAPI posix_types.h virtio_ring.h: do not include <stdint.h> from exported header

 arch/h8300/include/uapi/asm/posix_types.h  |  1 +
 arch/mips/include/uapi/asm/stat.h          | 20 ++++++++++----------
 arch/powerpc/include/uapi/asm/stat.h       | 10 +++++-----
 arch/s390/include/uapi/asm/posix_types.h   |  2 ++
 arch/sparc/include/uapi/asm/posix_types.h  |  1 +
 arch/sparc/include/uapi/asm/stat.h         | 12 ++++++------
 arch/xtensa/include/uapi/asm/posix_types.h |  1 +
 include/linux/types.h                      |  2 +-
 include/uapi/asm-generic/posix_types.h     |  2 ++
 include/uapi/linux/agpgart.h               |  9 ++++-----
 include/uapi/linux/virtio_ring.h           |  6 ++----
 tools/arch/h8300/include/asm/bitsperlong.h |  1 +
 usr/dummy-include/stdbool.h                |  7 +++++++
 usr/dummy-include/stdlib.h                 |  7 +++++++
 usr/include/Makefile                       | 12 +-----------
 15 files changed, 51 insertions(+), 42 deletions(-)
 create mode 100644 usr/dummy-include/stdbool.h
 create mode 100644 usr/dummy-include/stdlib.h
Signature · 1 line
2.32.0