From: Alexei Starovoitov Date: Fri, 21 Jan 2022 05:19:05 +0000 (-0800) Subject: Merge branch 'libbpf: deprecate legacy BPF map definitions' X-Git-Tag: v5.18-rc1~136^2~544^2~7 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=1713e33bfd28e156dbfb4711213b7314cced5791;p=linux-block.git Merge branch 'libbpf: deprecate legacy BPF map definitions' Andrii Nakryiko says: ==================== Officially deprecate legacy BPF map definitions in libbpf. They've been slated for deprecation for a while in favor of more powerful BTF-defined map definitions and this patch set adds warnings and a way to enforce this in libbpf through LIBBPF_STRICT_MAP_DEFINITIONS strict mode flag. Selftests are fixed up and updated, BPF documentation is updated, bpftool's strict mode usage is adjusted to avoid breaking users unnecessarily. v1->v2: - replace missed bpf_map_def case in Documentation/bpf/btf.rst (Alexei). ==================== Signed-off-by: Alexei Starovoitov --- 1713e33bfd28e156dbfb4711213b7314cced5791