aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/seccomp
diff options
context:
space:
mode:
authorShuah Khan <skhan@linuxfoundation.org>2021-12-09 16:20:53 -0700
committerShuah Khan <skhan@linuxfoundation.org>2021-12-10 17:51:09 -0700
commit6e5eba2e336694b88e3ef6584a25e0723c173ae2 (patch)
tree0e5067523c6f9e52a12f8021109ca696871903c5 /tools/testing/selftests/seccomp
parentselftests/rseq: remove ARRAY_SIZE define from individual tests (diff)
downloadwireguard-linux-6e5eba2e336694b88e3ef6584a25e0723c173ae2.tar.xz
wireguard-linux-6e5eba2e336694b88e3ef6584a25e0723c173ae2.zip
selftests/seccomp: remove ARRAY_SIZE define from seccomp_benchmark
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 seccomp_benchmark and pickup the one defined in kselftest.h. Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/seccomp')
-rw-r--r--tools/testing/selftests/seccomp/seccomp_benchmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/seccomp/seccomp_benchmark.c b/tools/testing/selftests/seccomp/seccomp_benchmark.c
index 6e5102a7d7c9..5b5c9d558dee 100644
--- a/tools/testing/selftests/seccomp/seccomp_benchmark.c
+++ b/tools/testing/selftests/seccomp/seccomp_benchmark.c
@@ -18,7 +18,7 @@
#include <sys/syscall.h>
#include <sys/types.h>
-#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
+#include "../kselftest.h"
unsigned long long timing(clockid_t clk_id, unsigned long long samples)
{