This is a note to let you know that I've just added the patch titled libbpf: Remove deprecation attribute from struct bpf_prog_prep_result to the 5.16-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: libbpf-remove-deprecation-attribute-from-struct-bpf_prog_prep_result.patch and it can be found in the queue-5.16 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 5c5edcdebfcf3a95257b0d8ef27a60af0e0ea03a Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko <andrii@xxxxxxxxxx> Date: Wed, 3 Nov 2021 15:08:40 -0700 Subject: libbpf: Remove deprecation attribute from struct bpf_prog_prep_result From: Andrii Nakryiko <andrii@xxxxxxxxxx> commit 5c5edcdebfcf3a95257b0d8ef27a60af0e0ea03a upstream. 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: e21d585cb3db ("libbpf: Deprecate multi-instance bpf_program APIs") Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx> Signed-off-by: Alexei Starovoitov <ast@xxxxxxxxxx> Acked-by: Dave Marchevsky <davemarchevsky@xxxxxx> Link: https://lore.kernel.org/bpf/20211103220845.2676888-8-andrii@xxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- tools/lib/bpf/libbpf.h | 1 - 1 file changed, 1 deletion(-) --- a/tools/lib/bpf/libbpf.h +++ b/tools/lib/bpf/libbpf.h @@ -431,7 +431,6 @@ bpf_program__attach_iter(const struct bp * one instance. In this case bpf_program__fd(prog) is equal to * bpf_program__nth_fd(prog, 0). */ -LIBBPF_DEPRECATED_SINCE(0, 7, "use bpf_program__insns() for getting bpf_program instructions") struct bpf_prog_prep_result { /* * If not NULL, load new instruction array. Patches currently in stable-queue which might be from andrii@xxxxxxxxxx are queue-5.16/bpftool-fix-memory-leak-in-prog_dump.patch queue-5.16/libbpf-fix-glob_syms-memory-leak-in-bpf_linker.patch queue-5.16/libbpf-add-bool-skipped-to-struct-bpf_map.patch queue-5.16/bpftool-remove-inclusion-of-utilities.mak-from-makefiles.patch queue-5.16/libbpf-detect-corrupted-elf-symbols-section.patch queue-5.16/libbpf-fix-using-invalidated-memory-in-bpf_linker.patch queue-5.16/libbpf-clean-gen_loader-s-attach-kind.patch queue-5.16/bpftool-enable-line-buffering-for-stdout.patch queue-5.16/bpftool-fix-indent-in-option-lists-in-the-documentation.patch queue-5.16/libbpf-use-probe_name-for-legacy-kprobe.patch queue-5.16/libbpf-fix-potential-misaligned-memory-access-in-btf.patch queue-5.16/libbpf-fix-section-counting-logic.patch queue-5.16/selftests-bpf-fix-bpf_object-leak-in-skb_ctx-selftes.patch queue-5.16/libbpf-silence-uninitialized-warning-error-in-btf_du.patch queue-5.16/libbpf-free-up-resources-used-by-inner-map-definitio.patch queue-5.16/selftests-bpf-destroy-xdp-link-correctly.patch queue-5.16/tools-resolve_btf_ids-close-elf-file-on-error.patch queue-5.16/libbpf-load-global-data-maps-lazily-on-legacy-kernel.patch queue-5.16/samples-bpf-fix-unknown-warning-group-build-warning-.patch queue-5.16/libbpf-fix-non-c89-loop-variable-declaration-in-gen_.patch queue-5.16/libbpf-accommodate-dwarf-compiler-bug-with-duplicate.patch queue-5.16/libbpf-validate-that-.btf-and-.btf.ext-sections-cont.patch queue-5.16/libbpf-remove-deprecation-attribute-from-struct-bpf_prog_prep_result.patch queue-5.16/xdp-check-prog-type-before-updating-bpf-link.patch queue-5.16/samples-bpf-clean-up-samples-bpf-build-failes.patch queue-5.16/bpf-adjust-btf-log-size-limit.patch queue-5.16/selftests-bpf-fix-memory-leaks-in-btf_type_c_dump-he.patch queue-5.16/samples-bpf-fix-xdp_sample_user.o-linking-with-clang.patch queue-5.16/libbpf-improve-sanity-checking-during-btf-fix-up.patch