]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Remove deprecation attribute from struct bpf_prog_prep_result
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 3 Nov 2021 22:08:40 +0000 (15:08 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 7 Nov 2021 16:34:23 +0000 (08:34 -0800)
commit992ff6a4af563c2a6c75cf02c844cc575be4178b
treeccf32107af2247fcd6fd71877851fdffbbfb4aff
parentb55a9aafb28a531eef23178f96750ea516695d0b
libbpf: Remove deprecation attribute from struct bpf_prog_prep_result

This deprecation annotation has no effect because for struct deprecation
attribute has to be declared after struct definition. But instead of
moving it to the end of struct definition, remove it. When deprecation
will go in effect at libbpf v0.7, this deprecation attribute will cause
libbpf's own source code compilation to trigger deprecation warnings,
which is unavoidable because libbpf still has to support that API.

So keep deprecation of APIs, but don't mark structs used in API as
deprecated.

Fixes: fb6b8d490cfc ("libbpf: Deprecate multi-instance bpf_program APIs")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Dave Marchevsky <davemarchevsky@fb.com>
Link: https://lore.kernel.org/bpf/20211103220845.2676888-8-andrii@kernel.org
tools/lib/bpf/libbpf.h