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

selftests/sparc64: remove ARRAY_SIZE define from adi-test

ARRAY_SIZE is defined in several selftests. Remove definition 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 adi-test and pickup the one defined in
kselftest.h.

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

-4
-4
tools/testing/selftests/sparc64/drivers/adi-test.c
··· 24 24 #define DEBUG_LEVEL_4_BIT (0x0008) 25 25 #define DEBUG_TIMING_BIT (0x1000) 26 26 27 - #ifndef ARRAY_SIZE 28 - # define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) 29 - #endif 30 - 31 27 /* bit mask of enabled bits to print */ 32 28 #define DEBUG 0x0001 33 29