Martin KaFai Lau a2889a4c2d 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>
2018-05-24 09:15:11 +02:00
..
2018-05-24 09:15:11 +02:00
2018-02-10 13:16:35 -08:00
2018-05-02 17:38:37 -10:00
2018-04-10 11:27:30 -07:00
2018-05-02 16:10:41 +02:00
2017-08-16 16:48:34 -07:00
2018-04-06 15:01:25 -07:00
2018-03-15 20:34:40 +01:00
2018-01-05 18:43:00 +11:00
2018-04-11 10:28:35 -07:00
2018-04-30 12:09:56 -04:00