Thread (3 messages) flat view 3 messages, 3 authors, 2022-03-17

Re: [PATCH] selftests: net: fix array_size.cocci warning

From: Paolo Abeni <pabeni@redhat.com>
Date: 2022-03-17 15:23:07
Also in: bpf, linux-kselftest, lkml

On Wed, 2022-03-16 at 17:28 +0800, Guo Zhengkui wrote:
Fix array_size.cocci warning in tools/testing/selftests/net.

Use `ARRAY_SIZE(arr)` instead of forms like `sizeof(arr)/sizeof(arr[0])`.

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

Signed-off-by: Guo Zhengkui <redacted>
This landed to net-next. Next time please specify a target tree in the
patch subj, thanks!

Paolo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help