diff options
author | 2022-03-06 10:34:26 +0800 | |
---|---|---|
committer | 2022-03-07 22:13:00 -0800 | |
commit | 04b6de649e124f2ea9693a25a744e646c1203ff9 (patch) | |
tree | 5e354cdeb5061ecb23248d53b6bebbbb6503e528 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: Replace strncpy() with strscpy() (diff) | |
download | linux-dev-04b6de649e124f2ea9693a25a744e646c1203ff9.tar.xz linux-dev-04b6de649e124f2ea9693a25a744e646c1203ff9.zip |
libbpf: Fix array_size.cocci warning
Fix the following coccicheck warning:
tools/lib/bpf/bpf.c:114:31-32: WARNING: Use ARRAY_SIZE
tools/lib/bpf/xsk.c:484:34-35: WARNING: Use ARRAY_SIZE
tools/lib/bpf/xsk.c:485:35-36: 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: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220306023426.19324-1-guozhengkui@vivo.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions