selftests/vDSO: fix array_size.cocci warning
authorGuo Zhengkui <guozhengkui@vivo.com>
Mon, 21 Mar 2022 05:27:42 +0000 (13:27 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 4 Apr 2022 19:27:11 +0000 (13:27 -0600)
commit8ff88bec6f6186c406aa71312b2919e56f7b8084
treefde160184795d85563f7d2cf776d4755cce1f0c6
parent3123109284176b1532874591f7c81f3837bbdc17
selftests/vDSO: fix array_size.cocci warning

Fix the following coccicheck warning:

tools/testing/selftests/vDSO/vdso_test_correctness.c:309:46-47:
WARNING: Use ARRAY_SIZE
tools/testing/selftests/vDSO/vdso_test_correctness.c:373:46-47:
WARNING: Use ARRAY_SIZE

It has been tested with gcc (Debian 8.3.0-6) 8.3.0 on x86_64.

Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/vDSO/vdso_test_correctness.c