diff options
author | 2021-12-09 16:27:45 -0700 | |
---|---|---|
committer | 2021-12-10 17:51:20 -0700 | |
commit | 7527c03870fd7bfb21b13656c8b5dda30b6685a7 (patch) | |
tree | addcdf2886a7404d6bc68a0f1e1af8a0a51435f2 /tools/testing/selftests/timens | |
parent | selftests/sparc64: remove ARRAY_SIZE define from adi-test (diff) | |
download | linux-7527c03870fd7bfb21b13656c8b5dda30b6685a7.tar.gz linux-7527c03870fd7bfb21b13656c8b5dda30b6685a7.tar.bz2 linux-7527c03870fd7bfb21b13656c8b5dda30b6685a7.zip |
selftests/timens: 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 timens tests and pickup the one defined in
kselftest.h.
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/timens')
-rw-r--r-- | tools/testing/selftests/timens/procfs.c | 2 | ||||
-rw-r--r-- | tools/testing/selftests/timens/timens.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/tools/testing/selftests/timens/procfs.c b/tools/testing/selftests/timens/procfs.c index f2519154208a..1833ca97eb24 100644 --- a/tools/testing/selftests/timens/procfs.c +++ b/tools/testing/selftests/timens/procfs.c @@ -24,8 +24,6 @@ #define DAY_IN_SEC (60*60*24) #define TEN_DAYS_IN_SEC (10*DAY_IN_SEC) -#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) - static int child_ns, parent_ns; static int switch_ns(int fd) diff --git a/tools/testing/selftests/timens/timens.c b/tools/testing/selftests/timens/timens.c index 52b6a1185f52..387220791a05 100644 --- a/tools/testing/selftests/timens/timens.c +++ b/tools/testing/selftests/timens/timens.c @@ -22,8 +22,6 @@ #define DAY_IN_SEC (60*60*24) #define TEN_DAYS_IN_SEC (10*DAY_IN_SEC) -#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) - struct test_clock { clockid_t id; char *name; |