Message ID | 20221115095910.86407-1-donald.hunter@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | e0eb60829a6eb249d7c6cccef0605c3004004bef |
Delegated to: | BPF |
Headers | show |
Series | [bpf-next,v1] docs/bpf: Fix sample code in MAP_TYPE_ARRAY docs | expand |
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!
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; }
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(-)