diff options
author | 2022-03-15 21:01:26 +0800 | |
---|---|---|
committer | 2022-03-15 17:03:10 +0100 | |
commit | f98d6dd1e79d4b04c2e13e91a9348473cfa805a6 (patch) | |
tree | 75ac48a710e482fbff0424c22a25addd29fc2075 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | samples/bpf, xdpsock: Fix race when running for fix duration of time (diff) | |
download | linux-dev-f98d6dd1e79d4b04c2e13e91a9348473cfa805a6.tar.xz linux-dev-f98d6dd1e79d4b04c2e13e91a9348473cfa805a6.zip |
selftests/bpf: Clean up array_size.cocci warnings
Clean up the array_size.cocci warnings under tools/testing/selftests/bpf/:
Use `ARRAY_SIZE(arr)` instead of forms like `sizeof(arr)/sizeof(arr[0])`.
tools/testing/selftests/bpf/test_cgroup_storage.c uses ARRAY_SIZE() defined
in tools/include/linux/kernel.h (sys/sysinfo.h -> linux/kernel.h), while
others use ARRAY_SIZE() in bpf_util.h.
Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220315130143.2403-1-guozhengkui@vivo.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions