projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4c84f6
)
libbpf: Change var type in datasec resize func
author
JP Kobryn
<inwardvessel@gmail.com>
Thu, 25 May 2023 00:13:23 +0000
(17:13 -0700)
committer
Andrii Nakryiko
<andrii@kernel.org>
Thu, 25 May 2023 17:33:04 +0000
(10:33 -0700)
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 <inwardvessel@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link:
https://lore.kernel.org/bpf/20230525001323.8554-1-inwardvessel@gmail.com
tools/lib/bpf/libbpf.c
patch
|
blob
|
history
diff --git
a/tools/lib/bpf/libbpf.c
b/tools/lib/bpf/libbpf.c
index
5cca009
..
1ceb3a9
100644
(file)
--- 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);