Re: [PATCH v10 14/15] selftests/mm: add userfaultfd RWP tests

From: Mike Rapoport

Date: Thu Jul 09 2026 - 03:56:09 EST


On Wed, Jul 08, 2026 at 10:57:58PM -0700, Andrew Morton wrote:
> On Wed, 8 Jul 2026 12:14:15 +0100 Kiryl Shutsemau <kirill@xxxxxxxxxxxxx> wrote:
>
> > Coverage for UFFDIO_REGISTER_MODE_RWP and UFFDIO_RWPROTECT:
>
> I'm getting selftests build errors:
>
> uffd-unit-tests.c: In function ‘uffd_register_rwp’:
> uffd-unit-tests.c:624:25: error: ‘UFFDIO_REGISTER_MODE_RWP’ undeclared (first use in this function); did you mean ‘UFFDIO_REGISTER_MODE_WP’?
> 624 | .mode = UFFDIO_REGISTER_MODE_RWP,
> | ^~~~~~~~~~~~~~~~~~~~~~~~
> | UFFDIO_REGISTER_MODE_WP
> uffd-unit-tests.c:624:25: note: each undeclared identifier is reported only once
>
> <etc>
>
> Seems that tools/include/uapi/linux/userfaultfd.h needs updates from
> include/uapi/linux/userfaultfd.h?

Hmm, I wonder if it should be there at all :/

I thought userfaultfd.h is brought into selftests by make install_headers

> I'll disable this patch for now.

--
Sincerely yours,
Mike.