* [PATCH] libbpf: fix commnet typo
@ 2021-07-27 11:59 Jason Wang
2021-07-27 15:49 ` Yonghong Song
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jason Wang @ 2021-07-27 11:59 UTC (permalink / raw)
To: daniel
Cc: ast, andrii, kafai, songliubraving, yhs, john.fastabend, kpsingh,
netdev, bpf, linux-kernel, Jason Wang
Remove the repeated word 'the' in line 48.
Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
tools/lib/bpf/libbpf.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
index 4c153c379989..d474816ecd70 100644
--- a/tools/lib/bpf/libbpf.c
+++ b/tools/lib/bpf/libbpf.c
@@ -7236,7 +7236,7 @@ static int bpf_object__collect_relos(struct bpf_object *obj)
for (i = 0; i < obj->nr_programs; i++) {
struct bpf_program *p = &obj->programs[i];
-
+
if (!p->nr_reloc)
continue;
@@ -9533,7 +9533,7 @@ static int find_btf_by_prefix_kind(const struct btf *btf, const char *prefix,
ret = snprintf(btf_type_name, sizeof(btf_type_name),
"%s%s", prefix, name);
/* snprintf returns the number of characters written excluding the
- * the terminating null. So, if >= BTF_MAX_NAME_SIZE are written, it
+ * terminating null. So, if >= BTF_MAX_NAME_SIZE are written, it
* indicates truncation.
*/
if (ret < 0 || ret >= sizeof(btf_type_name))
@@ -10075,7 +10075,7 @@ struct bpf_link {
int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog)
{
int ret;
-
+
ret = bpf_link_update(bpf_link__fd(link), bpf_program__fd(prog), NULL);
return libbpf_err_errno(ret);
}
--
2.32.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] libbpf: fix commnet typo
2021-07-27 11:59 [PATCH] libbpf: fix commnet typo Jason Wang
@ 2021-07-27 15:49 ` Yonghong Song
2021-07-27 21:20 ` Andrii Nakryiko
2021-07-27 21:30 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: Yonghong Song @ 2021-07-27 15:49 UTC (permalink / raw)
To: Jason Wang, daniel
Cc: ast, andrii, kafai, songliubraving, john.fastabend, kpsingh,
netdev, bpf, linux-kernel
On 7/27/21 4:59 AM, Jason Wang wrote:
> Remove the repeated word 'the' in line 48.
>
> Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
Acked-by: Yonghong Song <yhs@fb.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] libbpf: fix commnet typo
2021-07-27 11:59 [PATCH] libbpf: fix commnet typo Jason Wang
2021-07-27 15:49 ` Yonghong Song
@ 2021-07-27 21:20 ` Andrii Nakryiko
2021-07-27 21:30 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: Andrii Nakryiko @ 2021-07-27 21:20 UTC (permalink / raw)
To: wangborong
Cc: Daniel Borkmann, Alexei Starovoitov, Andrii Nakryiko, Martin Lau,
Song Liu, Yonghong Song, john fastabend, KP Singh, Networking,
bpf, open list
On Tue, Jul 27, 2021 at 5:00 AM Jason Wang <wangborong@cdjrlc.com> wrote:
>
> Remove the repeated word 'the' in line 48.
>
> Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
> ---
Fixed the typo in the subject of a patch fixing a typo in libbpf
comment :) Applied to bpf-next.
> tools/lib/bpf/libbpf.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
> index 4c153c379989..d474816ecd70 100644
> --- a/tools/lib/bpf/libbpf.c
> +++ b/tools/lib/bpf/libbpf.c
> @@ -7236,7 +7236,7 @@ static int bpf_object__collect_relos(struct bpf_object *obj)
>
> for (i = 0; i < obj->nr_programs; i++) {
> struct bpf_program *p = &obj->programs[i];
> -
> +
> if (!p->nr_reloc)
> continue;
>
> @@ -9533,7 +9533,7 @@ static int find_btf_by_prefix_kind(const struct btf *btf, const char *prefix,
> ret = snprintf(btf_type_name, sizeof(btf_type_name),
> "%s%s", prefix, name);
> /* snprintf returns the number of characters written excluding the
> - * the terminating null. So, if >= BTF_MAX_NAME_SIZE are written, it
> + * terminating null. So, if >= BTF_MAX_NAME_SIZE are written, it
> * indicates truncation.
> */
> if (ret < 0 || ret >= sizeof(btf_type_name))
> @@ -10075,7 +10075,7 @@ struct bpf_link {
> int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog)
> {
> int ret;
> -
> +
> ret = bpf_link_update(bpf_link__fd(link), bpf_program__fd(prog), NULL);
> return libbpf_err_errno(ret);
> }
> --
> 2.32.0
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] libbpf: fix commnet typo
2021-07-27 11:59 [PATCH] libbpf: fix commnet typo Jason Wang
2021-07-27 15:49 ` Yonghong Song
2021-07-27 21:20 ` Andrii Nakryiko
@ 2021-07-27 21:30 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-07-27 21:30 UTC (permalink / raw)
To: Jason Wang
Cc: daniel, ast, andrii, kafai, songliubraving, yhs, john.fastabend,
kpsingh, netdev, bpf, linux-kernel
Hello:
This patch was applied to bpf/bpf-next.git (refs/heads/master):
On Tue, 27 Jul 2021 19:59:28 +0800 you wrote:
> Remove the repeated word 'the' in line 48.
>
> Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
> ---
> tools/lib/bpf/libbpf.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Here is the summary with links:
- libbpf: fix commnet typo
https://git.kernel.org/bpf/bpf-next/c/c139e40a515d
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] 4+ messages in thread
end of thread, other threads:[~2021-07-27 21:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 11:59 [PATCH] libbpf: fix commnet typo Jason Wang
2021-07-27 15:49 ` Yonghong Song
2021-07-27 21:20 ` Andrii Nakryiko
2021-07-27 21:30 ` 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).