diff options
author | Shuah Khan <skhan@linuxfoundation.org> | 2021-12-10 00:35:02 +0100 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2021-12-11 01:51:25 +0100 |
commit | e89908201e2509354c40158b517945bf3d645812 (patch) | |
tree | d78cee77b685968c386697817474dcf320acae3c /tools/testing/selftests/vm/va_128TBswitch.c | |
parent | selftests/timens: remove ARRAY_SIZE define from individual tests (diff) | |
download | linux-e89908201e2509354c40158b517945bf3d645812.tar.xz linux-e89908201e2509354c40158b517945bf3d645812.zip |
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>
Diffstat (limited to 'tools/testing/selftests/vm/va_128TBswitch.c')
-rw-r--r-- | tools/testing/selftests/vm/va_128TBswitch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/vm/va_128TBswitch.c b/tools/testing/selftests/vm/va_128TBswitch.c index 83acdff26a13..da6ec3b53ea8 100644 --- a/tools/testing/selftests/vm/va_128TBswitch.c +++ b/tools/testing/selftests/vm/va_128TBswitch.c @@ -9,7 +9,7 @@ #include <sys/mman.h> #include <string.h> -#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) +#include "../kselftest.h" #ifdef __powerpc64__ #define PAGE_SIZE (64 << 10) |