selftests/arm64: remove ARRAY_SIZE define from vec-syscfg.c
authorShuah Khan <skhan@linuxfoundation.org>
Thu, 9 Dec 2021 19:36:24 +0000 (12:36 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Sat, 11 Dec 2021 00:50:25 +0000 (17:50 -0700)
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 vec-syscfg.c and pickup the one defined in
kselftest.h.

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/arm64/fp/vec-syscfg.c

index 272b888e018e4c89cd869b0e69c99e3adeca2ff0..c90658811a83857ffcdd0c32c6a4062cff9b22bc 100644 (file)
@@ -21,8 +21,6 @@
 #include "../../kselftest.h"
 #include "rdvl.h"
 
-#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
-
 #define ARCH_MIN_VL SVE_VL_MIN
 
 struct vec_data {