diff options
author | Alexei Starovoitov <ast@kernel.org> | 2021-12-03 02:08:37 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-12-03 02:23:41 +0300 |
commit | 080a70b21f476b39ad66524c0ce0729972c61a10 (patch) | |
tree | dad6591838a9b35d8414ed4e80d0763b02ff2287 /tools/lib/bpf/libbpf_common.h | |
parent | 8b4ff5f8bb126fa8ee6918f4854748277609cf68 (diff) | |
parent | c93faaaf2f67ba5396840316651cdc7640d9fa9e (diff) | |
download | linux-080a70b21f476b39ad66524c0ce0729972c61a10.tar.xz |
Merge branch 'Deprecate bpf_prog_load_xattr() API'
Andrii Nakryiko says:
====================
Few lines in the last patch to mark bpf_prog_load_xattr() deprecated required
a decent amount of clean ups in all the other patches. samples/bpf is big part
of the clean up.
This patch set also bumps libbpf version to 0.7, as libbpf v0.6 release will
be cut shortly.
====================
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/bpf/libbpf_common.h')
-rw-r--r-- | tools/lib/bpf/libbpf_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf_common.h b/tools/lib/bpf/libbpf_common.h index b21cefc9c3b6..000e37798ff2 100644 --- a/tools/lib/bpf/libbpf_common.h +++ b/tools/lib/bpf/libbpf_common.h @@ -40,6 +40,11 @@ #else #define __LIBBPF_MARK_DEPRECATED_0_7(X) #endif +#if __LIBBPF_CURRENT_VERSION_GEQ(0, 8) +#define __LIBBPF_MARK_DEPRECATED_0_8(X) X +#else +#define __LIBBPF_MARK_DEPRECATED_0_8(X) +#endif /* This set of internal macros allows to do "function overloading" based on * number of arguments provided by used in backwards-compatible way during the |