]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7f8d3a5df6091224f2e0598832356eaa66f9dce
treefde160184795d85563f7d2cf776d4755cce1f0c6
parentdbb008736a8c113ef1e12b4e4b4351fac2a15ede
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