]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/mm: merge util.h into vm_util.h
authorPeter Xu <peterx@redhat.com>
Wed, 12 Apr 2023 16:41:20 +0000 (12:41 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Apr 2023 23:30:02 +0000 (16:30 -0700)
commitaf605d26a8f26e9e46fa82246dc1241efd3834a5
tree9be7bdf100728601f0b7bd4c681e8c130abb00a8
parentc7c55fc4e39aed6a5a4d47f2201e53b1efb24ca6
selftests/mm: merge util.h into vm_util.h

There're two util headers under mm/ kselftest.  Merge one with another.
It turns out util.h is the easy one to move.

When merging, drop PAGE_SIZE / PAGE_SHIFT because they're unnecessary
wrappers to page_size() / page_shift(), meanwhile rename them to psize()
and pshift() so as to not conflict with some existing definitions in some
test files that includes vm_util.h.

Link: https://lkml.kernel.org/r/20230412164120.327731-1-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Axel Rasmussen <axelrasmussen@google.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Dmitry Safonov <0x7f454c46@gmail.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Zach O'Keefe <zokeefe@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/Makefile
tools/testing/selftests/mm/gup_test.c
tools/testing/selftests/mm/ksm_tests.c
tools/testing/selftests/mm/mrelease_test.c
tools/testing/selftests/mm/transhuge-stress.c
tools/testing/selftests/mm/util.h [deleted file]
tools/testing/selftests/mm/vm_util.c
tools/testing/selftests/mm/vm_util.h