* [PATCH bpf-next] libbpf: change var type in datasec resize func
@ 2023-05-25 0:13 JP Kobryn
2023-05-25 5:29 ` Yonghong Song
2023-05-25 17:40 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: JP Kobryn @ 2023-05-25 0:13 UTC (permalink / raw)
To: bpf, andrii; +Cc: inwardvessel
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>
---
tools/lib/bpf/libbpf.c | 4 ++--
1 file 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);
--
2.40.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH bpf-next] libbpf: change var type in datasec resize func
2023-05-25 0:13 [PATCH bpf-next] libbpf: change var type in datasec resize func JP Kobryn
@ 2023-05-25 5:29 ` Yonghong Song
2023-05-25 17:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Yonghong Song @ 2023-05-25 5:29 UTC (permalink / raw)
To: JP Kobryn, bpf, andrii
On 5/24/23 5:13 PM, JP Kobryn wrote:
> 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>
Acked-by: Yonghong Song <yhs@fb.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH bpf-next] libbpf: change var type in datasec resize func
2023-05-25 0:13 [PATCH bpf-next] libbpf: change var type in datasec resize func JP Kobryn
2023-05-25 5:29 ` Yonghong Song
@ 2023-05-25 17:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-05-25 17:40 UTC (permalink / raw)
To: JP Kobryn; +Cc: bpf, andrii
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:
On Wed, 24 May 2023 17:13:23 -0700 you wrote:
> 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>
> ---
> tools/lib/bpf/libbpf.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Here is the summary with links:
- [bpf-next] libbpf: change var type in datasec resize func
https://git.kernel.org/bpf/bpf-next/c/4c857a719bf9
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-05-25 17:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-25 0:13 [PATCH bpf-next] libbpf: change var type in datasec resize func JP Kobryn
2023-05-25 5:29 ` Yonghong Song
2023-05-25 17:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).