Skip to content

Fix selftests/mm build without requiring "make headers"

John Hubbard linux-kselftest linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] selftests-mm-fix-additional-build-errors-for-selftests.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2selftests: break the dependency upon local header filestools/testing/selftests/lib.mk tools/testing/selftests/mm/Makefile+10 -11 replyApplied
2/2selftests/mm: fix additional build errors for selfteststools/include/uapi/linux/memfd.h tools/include/uapi/linux/userfaultfd.h+425 -01 replyApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDavid Hildenbrand
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Fix selftests/mm build without requiring "make headers"

Hi,

As mentioned in each patch, this implements the solution that we discussed in December 2023, in [1]. This turned out to be very clean and easy. It should also be quite easy to maintain.

This should also make Peter Zijlstra happy, because it directly addresses the root cause of his "NAK NAK NAK" reply [2]. :)

I haven't done much build testing, because selftests are not so easy to build with a cross-compiler. So it's just tested on x86 64-bit so far.

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/lkml/[email protected]/

Cc David Hildenbrand <[email protected]>
Cc Mark Brown <[email protected]>
Cc Muhammad Usama Anjum <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Peter Zijlstra <[email protected]>

John Hubbard (2):
selftests: break the dependency upon local header files selftests/mm: fix additional build errors for selftests

 tools/include/uapi/linux/memfd.h       |  39 +++
 tools/include/uapi/linux/userfaultfd.h | 386 +++++++++++++++++++++++++
 tools/testing/selftests/lib.mk         |   9 +
 tools/testing/selftests/mm/Makefile    |   2 +-
 4 files changed, 435 insertions(+), 1 deletion(-)
 create mode 100644 tools/include/uapi/linux/memfd.h
 create mode 100644 tools/include/uapi/linux/userfaultfd.h

base-commit: 98560e9019851bf55b8a4073978a623a3bcf98c0

Signature · 1 line
2.44.0