diff options
author | 2018-05-23 11:32:36 -0700 | |
---|---|---|
committer | 2018-05-24 09:15:11 +0200 | |
commit | a2889a4c2d3aefdf6f2a636fa1531243653a7633 (patch) | |
tree | 438d5921310c11392d0e4995d1f3e7b90fc0203a /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | tools/lib/libbpf.c: fix string format to allow build on arm32 (diff) | |
download | linux-dev-a2889a4c2d3aefdf6f2a636fa1531243653a7633.tar.xz linux-dev-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 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions