summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/ipsec.c
diff options
context:
space:
mode:
authorShuah Khan <skhan@linuxfoundation.org>2021-12-09 22:10:23 +0100
committerShuah Khan <skhan@linuxfoundation.org>2021-12-11 01:50:57 +0100
commit1329e40ebd18f1171f89f9e61b7a4aed9a1de406 (patch)
treebf935093f212c433ba57c68c5809d87e55d495fe /tools/testing/selftests/net/ipsec.c
parentselftests/landlock: remove ARRAY_SIZE define from common.h (diff)
downloadlinux-1329e40ebd18f1171f89f9e61b7a4aed9a1de406.tar.xz
linux-1329e40ebd18f1171f89f9e61b7a4aed9a1de406.zip
selftests/net: 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 net tests and pickup the one defined in kselftest.h. Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/net/ipsec.c')
-rw-r--r--tools/testing/selftests/net/ipsec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/ipsec.c b/tools/testing/selftests/net/ipsec.c
index 3d7dde2c321b..cc10c10c5ed9 100644
--- a/tools/testing/selftests/net/ipsec.c
+++ b/tools/testing/selftests/net/ipsec.c
@@ -41,7 +41,6 @@
#define pr_err(fmt, ...) printk(fmt ": %m", ##__VA_ARGS__)
-#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
#define IPV4_STR_SZ 16 /* xxx.xxx.xxx.xxx is longest + \0 */