commit | a2889a4c2d3aefdf6f2a636fa1531243653a7633 | [log] [tgz] |
---|---|---|
author | Martin KaFai Lau <kafai@fb.com> | Wed May 23 11:32:36 2018 -0700 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Thu May 24 09:15:11 2018 +0200 |
tree | 438d5921310c11392d0e4995d1f3e7b90fc0203a | |
parent | a1c818109cc8126cf20523692ca29f1eae3172eb [diff] |
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>