]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerShuah Khan <skhan@linuxfoundation.org>
Sat, 11 Dec 2021 00:51:25 +0000 (17:51 -0700)
commit9b2f8bb7beae32bbebc4e9f826ba3f92062b7670
treed78cee77b685968c386697817474dcf320acae3c
parenta07e339f9c291d3651cd9200f4c52bb51d163682
selftests/vm: remove ARRAY_SIZE define from individual tests

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>
tools/testing/selftests/vm/mremap_test.c
tools/testing/selftests/vm/pkey-helpers.h
tools/testing/selftests/vm/va_128TBswitch.c