selftests/mm: move certain uffd*() routines from vm_util.c to uffd-common.c
There are only three uffd*() routines that are used outside of the uffd selftests. Leave these in vm_util.c, where they are available to any mm selftest program: uffd_register() uffd_unregister() uffd_register_with_ioctls(). A few other uffd*() routines, however, are only used by the uffd-focused tests found in uffd-stress.c and uffd-unit-tests.c. Move those routines into uffd-common.c. Link: https://lkml.kernel.org/r/20230606071637.267103-10-jhubbard@nvidia.com Signed-off-by:John Hubbard <jhubbard@nvidia.com> Acked-by:
David Hildenbrand <david@redhat.com> Tested-by:
Muhammad Usama Anjum <usama.anjum@collabora.com> Cc: Peter Xu <peterx@redhat.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Nathan Chancellor <nathan@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org>
Showing
- tools/testing/selftests/mm/uffd-common.c 59 additions, 0 deletionstools/testing/selftests/mm/uffd-common.c
- tools/testing/selftests/mm/uffd-common.h 5 additions, 0 deletionstools/testing/selftests/mm/uffd-common.h
- tools/testing/selftests/mm/vm_util.c 0 additions, 59 deletionstools/testing/selftests/mm/vm_util.c
- tools/testing/selftests/mm/vm_util.h 0 additions, 4 deletionstools/testing/selftests/mm/vm_util.h
Please register or sign in to comment