selftest/vm: add util.h and and move helper functions there
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Fri, 25 Mar 2022 01:09:43 +0000 (18:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Mar 2022 02:06:45 +0000 (19:06 -0700)
commit90647d9d725068ad27d39f80d2b4a5150d041038
tree01afa8f8b9f5b7015a33aa67e399550235f6dc66
parent1a9762b2d7a56e9926a22a627972423840a1aabb
selftest/vm: add util.h and and move helper functions there

Avoid code duplication by adding util.h.  No functional change in this
patch.

Link: https://lkml.kernel.org/r/20220307054355.149820-1-aneesh.kumar@linux.ibm.com
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/vm/ksm_tests.c
tools/testing/selftests/vm/transhuge-stress.c
tools/testing/selftests/vm/util.h [new file with mode: 0644]