From: JP Kobryn <inwardvessel@gmail.com>
To: bpf@vger.kernel.org, andrii@kernel.org
Cc: inwardvessel@gmail.com
Subject: [PATCH bpf-next] libbpf: change var type in datasec resize func
Date: Wed, 24 May 2023 17:13:23 -0700 [thread overview]
Message-ID: <20230525001323.8554-1-inwardvessel@gmail.com> (raw)
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
next reply other threads:[~2023-05-25 0:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-25 0:13 JP Kobryn [this message]
2023-05-25 5:29 ` [PATCH bpf-next] libbpf: change var type in datasec resize func Yonghong Song
2023-05-25 17:40 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230525001323.8554-1-inwardvessel@gmail.com \
--to=inwardvessel@gmail.com \
--cc=andrii@kernel.org \
--cc=bpf@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).