]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/rseq: remove ARRAY_SIZE define from individual tests
authorShuah Khan <skhan@linuxfoundation.org>
Thu, 9 Dec 2021 23:19:09 +0000 (16:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jul 2022 15:53:30 +0000 (17:53 +0200)
commit91095a9bca0cec5ff6d99721139c94ae0dd00b12
tree299681bc3711f5683ade739e093612b18a21dbb1
parent564f52c6117d49f58dcddf4948c7f713763768cf
selftests/rseq: remove ARRAY_SIZE define from individual tests

commit 736b9d19997ae37eefaacd44bac6315bfe86cb10 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/rseq/basic_percpu_ops_test.c
tools/testing/selftests/rseq/rseq.c