* [PATCH bpf-next v1] docs/bpf: Fix sample code in MAP_TYPE_ARRAY docs
@ 2022-11-15 9:59 Donald Hunter
2022-11-16 5:40 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Donald Hunter @ 2022-11-15 9:59 UTC (permalink / raw)
To: bpf, linux-doc, Andrii Nakryiko
Cc: Alexei Starovoitov, Daniel Borkmann, Jonathan Corbet,
Donald Hunter
Remove mistaken & from code example in MAP_TYPE_ARRAY docs
Fixes: 1cfa97b30c5a ("bpf, docs: Document BPF_MAP_TYPE_ARRAY")
Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
---
Documentation/bpf/map_array.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/bpf/map_array.rst b/Documentation/bpf/map_array.rst
index b2cceb6c696b..97bb80333254 100644
--- a/Documentation/bpf/map_array.rst
+++ b/Documentation/bpf/map_array.rst
@@ -119,7 +119,7 @@ This example BPF program shows how to access an array element.
index = ip.protocol;
value = bpf_map_lookup_elem(&my_map, &index);
if (value)
- __sync_fetch_and_add(&value, skb->len);
+ __sync_fetch_and_add(value, skb->len);
return 0;
}
--
2.35.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH bpf-next v1] docs/bpf: Fix sample code in MAP_TYPE_ARRAY docs
2022-11-15 9:59 [PATCH bpf-next v1] docs/bpf: Fix sample code in MAP_TYPE_ARRAY docs Donald Hunter
@ 2022-11-16 5:40 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-11-16 5:40 UTC (permalink / raw)
To: Donald Hunter; +Cc: bpf, linux-doc, andrii, ast, daniel, corbet
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Tue, 15 Nov 2022 09:59:10 +0000 you wrote:
> Remove mistaken & from code example in MAP_TYPE_ARRAY docs
>
> Fixes: 1cfa97b30c5a ("bpf, docs: Document BPF_MAP_TYPE_ARRAY")
> Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
> ---
> Documentation/bpf/map_array.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [bpf-next,v1] docs/bpf: Fix sample code in MAP_TYPE_ARRAY docs
https://git.kernel.org/bpf/bpf-next/c/e0eb60829a6e
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] 2+ messages in thread
end of thread, other threads:[~2022-11-16 5:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-15 9:59 [PATCH bpf-next v1] docs/bpf: Fix sample code in MAP_TYPE_ARRAY docs Donald Hunter
2022-11-16 5: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).