Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kselftest/arm64: Remove local ARRAY_SIZE() definitions

An ARRAY_SIZE() has been added to kselftest.h so remove the local versions
in some of the arm64 selftests.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20220124171748.2195875-1-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>

authored by

Mark Brown and committed by
Will Deacon
3673d4b9 dfd42fac

-3
-1
tools/testing/selftests/arm64/abi/syscall-abi.c
··· 18 18 19 19 #include "../../kselftest.h" 20 20 21 - #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) 22 21 #define NUM_VL ((SVE_VQ_MAX - SVE_VQ_MIN) + 1) 23 22 24 23 extern void do_syscall(int sve_vl);
-2
tools/testing/selftests/arm64/fp/sve-ptrace.c
··· 21 21 22 22 #include "../../kselftest.h" 23 23 24 - #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) 25 - 26 24 /* <linux/elf.h> and <sys/auxv.h> don't like each other, so: */ 27 25 #ifndef NT_ARM_SVE 28 26 #define NT_ARM_SVE 0x405