Skip to content

Commit 6e5eba2

Browse files
committed
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 <[email protected]>
1 parent 07ad4f7 commit 6e5eba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/seccomp/seccomp_benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <sys/syscall.h>
1919
#include <sys/types.h>
2020

21-
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
21+
#include "../kselftest.h"
2222

2323
unsigned long long timing(clockid_t clk_id, unsigned long long samples)
2424
{

0 commit comments

Comments
 (0)