]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bpf/helpers: Refactor bpf_dynptr_read and bpf_dynptr_write
authorMykyta Yatsenko <yatsenko@meta.com>
Wed, 26 Feb 2025 18:31:59 +0000 (18:31 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 15 Mar 2025 18:47:51 +0000 (11:47 -0700)
commit09206af69c5238909af208b3f46a4aa7997ac0e1
tree71c41cc4a81f0af6c32fe0f0898cd7dee78d9aa4
parentb0f2ee6077ef1e880aee4758638bd0325275abb5
bpf/helpers: Refactor bpf_dynptr_read and bpf_dynptr_write

Refactor bpf_dynptr_read and bpf_dynptr_write helpers: extract code
into the static functions namely __bpf_dynptr_read and
__bpf_dynptr_write, this allows calling these without compiler warnings.

Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250226183201.332713-2-mykyta.yatsenko5@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/helpers.c