selftests/proc: fix array_size.cocci warning
authorGuo Zhengkui <guozhengkui@vivo.com>
Mon, 21 Mar 2022 10:25:17 +0000 (18:25 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 4 Apr 2022 19:27:21 +0000 (13:27 -0600)
commit1585b1b55a2b9086823a6b30031eb63f965f8d44
treeb1b92d844133d054d506b2f7e3a3cc0fe56da86e
parent8ff88bec6f6186c406aa71312b2919e56f7b8084
selftests/proc: fix array_size.cocci warning

Fix the following coccicheck warning:

tools/testing/selftests/proc/proc-pid-vm.c:371:26-27:
WARNING: Use ARRAY_SIZE
tools/testing/selftests/proc/proc-pid-vm.c:420:26-27:
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/proc/proc-pid-vm.c