On 6/2/23 6:33 AM, John Hubbard wrote:
UFFDIO_CONTINUE_MODE_WP, UFFD_FEATURE_WP_UNPOPULATED, USERFAULTFD_IOC,Selftests are never supposed to build with native header files. Build the
and USERFAULTFD_IOC_NEW are needed lately, but they are not in my host
(Arch Linux) distro's userfaultfd.h yet. So put them in here.
headers in kernel source first. Then building the selftests picks up these
newly built headers by itself. The method to build header files has changed
to `make headers`. The following command builds the mm selftests
successfully every time for me.
make headers && make -C tools/testing/selftests/mm
Please let me know if this doesn't work for you. I'll try to reproduce and fix.