Skip to content

Commit

Permalink
selftests/seccomp: remove ARRAY_SIZE define from seccomp_benchmark
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
shuahkh committed Dec 11, 2021
1 parent 07ad4f7 commit 6e5eba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/seccomp/seccomp_benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 6e5eba2

Please sign in to comment.