aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJP Kobryn <[email protected]>2023-05-24 17:13:23 -0700
committerAndrii Nakryiko <[email protected]>2023-05-25 10:33:04 -0700
commit4c857a719bf9c5ddbcf3bd92398632041bff50d0 (patch)
tree3590276ac834428ccee0e8c3f1c1142af9b62cbf
parentc4c84f6fb2c4dc4c0f5fd927b3c3d3fd28b7030e (diff)
libbpf: Change var type in datasec resize func
This changes a local variable type that stores a new array id to match the return type of btf__add_array(). Signed-off-by: JP Kobryn <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
-rw-r--r--tools/lib/bpf/libbpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
index 5cca00979aae..1ceb3a97dadc 100644
--- a/tools/lib/bpf/libbpf.c
+++ b/tools/lib/bpf/libbpf.c
@@ -9444,8 +9444,8 @@ static int map_btf_datasec_resize(struct bpf_map *map, __u32 size)
struct btf_var_secinfo *var;
const struct btf_type *array_type;
const struct btf_array *array;
- int vlen, element_sz;
- __u32 nr_elements, new_array_id;
+ int vlen, element_sz, new_array_id;
+ __u32 nr_elements;
/* check btf existence */
btf = bpf_object__btf(map->obj);