diff options
author | Shuah Khan <skhan@linuxfoundation.org> | 2021-12-10 02:27:45 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2021-12-11 03:51:20 +0300 |
commit | 7527c03870fd7bfb21b13656c8b5dda30b6685a7 (patch) | |
tree | addcdf2886a7404d6bc68a0f1e1af8a0a51435f2 /tools/testing/selftests/timens/procfs.c | |
parent | 08ca3510f74839a695257392a58a6d7ec142eaed (diff) | |
download | linux-7527c03870fd7bfb21b13656c8b5dda30b6685a7.tar.xz |
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/procfs.c')
-rw-r--r-- | tools/testing/selftests/timens/procfs.c | 2 |
1 files changed, 0 insertions, 2 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) |