selftests/vm: remove ARRAY_SIZE define from individual tests
authorShuah Khan <skhan@linuxfoundation.org>
Thu, 9 Dec 2021 23:35:02 +0000 (16:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 06:59:01 +0000 (07:59 +0100)
commite92e311ced6feaa272b25a3980fddede9afab900
treedcfeb0518fe4e2efffebcafaed7ae80a55f57079
parentc9e52db90031b7a89bf667057df5ca9c25cd68ff
selftests/vm: remove ARRAY_SIZE define from individual tests

commit e89908201e2509354c40158b517945bf3d645812 upstream.

ARRAY_SIZE is defined in several selftests. Remove definitions from
individual test files and include header file for the define instead.
ARRAY_SIZE define is added in a separate patch to prepare for this
change.

Remove ARRAY_SIZE from vm tests and pickup the one defined in
kselftest.h.

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Cc: Kyle Huey <me@kylehuey.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/vm/mremap_test.c
tools/testing/selftests/vm/pkey-helpers.h
tools/testing/selftests/vm/va_128TBswitch.c