summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/rseq/basic_percpu_ops_test.c
diff options
context:
space:
mode:
authorShuah Khan <skhan@linuxfoundation.org>2021-12-10 02:19:09 +0300
committerShuah Khan <skhan@linuxfoundation.org>2021-12-11 03:51:03 +0300
commit07ad4f7629d4802ff0d962b0ac23ea6445964e2a (patch)
tree9cff678a7641111ed812158b49661b84d4f23ce4 /tools/testing/selftests/rseq/basic_percpu_ops_test.c
parent1329e40ebd18f1171f89f9e61b7a4aed9a1de406 (diff)
downloadlinux-07ad4f7629d4802ff0d962b0ac23ea6445964e2a.tar.xz
selftests/rseq: 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 rseq tests and pickup the one defined in kselftest.h. Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/rseq/basic_percpu_ops_test.c')
-rw-r--r--tools/testing/selftests/rseq/basic_percpu_ops_test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/rseq/basic_percpu_ops_test.c b/tools/testing/selftests/rseq/basic_percpu_ops_test.c
index eb3f6db36d36..b953a52ff706 100644
--- a/tools/testing/selftests/rseq/basic_percpu_ops_test.c
+++ b/tools/testing/selftests/rseq/basic_percpu_ops_test.c
@@ -9,10 +9,9 @@
#include <string.h>
#include <stddef.h>
+#include "../kselftest.h"
#include "rseq.h"
-#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
-
struct percpu_lock_entry {
intptr_t v;
} __attribute__((aligned(128)));