diff options
author | Martin KaFai Lau | 2018-05-23 20:32:36 +0200 |
---|---|---|
committer | Daniel Borkmann | 2018-05-24 09:15:11 +0200 |
commit | a2889a4c2d3aefdf6f2a636fa1531243653a7633 (patch) | |
tree | 438d5921310c11392d0e4995d1f3e7b90fc0203a /ipc/util.c | |
parent | tools/lib/libbpf.c: fix string format to allow build on arm32 (diff) | |
download | kernel-qcow2-linux-a2889a4c2d3aefdf6f2a636fa1531243653a7633.tar.gz kernel-qcow2-linux-a2889a4c2d3aefdf6f2a636fa1531243653a7633.tar.xz kernel-qcow2-linux-a2889a4c2d3aefdf6f2a636fa1531243653a7633.zip |
bpf: btf: Avoid variable length array
Sparse warning:
kernel/bpf/btf.c:1985:34: warning: Variable length array is used.
This patch directly uses ARRAY_SIZE().
Fixes: f80442a4cd18 ("bpf: btf: Change how section is supported in btf_header")
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'ipc/util.c')
0 files changed, 0 insertions, 0 deletions