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: core-urgent-2022-04-03~86^2~544^2~7 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1713e33bfd28e156dbfb4711213b7314cced5791;p=users%2Fdwmw2%2Flinux.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