Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

libbpf: cleanup LIBBPF_DEPRECATED_SINCE supporting macros for v0.x

Keep the LIBBPF_DEPRECATED_SINCE macro "framework" for future
deprecations, but clean up 0.x related helper macros.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20220627211527.2245459-11-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

Andrii Nakryiko and committed by
Alexei Starovoitov
a11113a2 b4bda502

+3 -13
+3 -13
tools/lib/bpf/libbpf_common.h
··· 30 30 /* Add checks for other versions below when planning deprecation of API symbols 31 31 * with the LIBBPF_DEPRECATED_SINCE macro. 32 32 */ 33 - #if __LIBBPF_CURRENT_VERSION_GEQ(0, 6) 34 - #define __LIBBPF_MARK_DEPRECATED_0_6(X) X 33 + #if __LIBBPF_CURRENT_VERSION_GEQ(1, 0) 34 + #define __LIBBPF_MARK_DEPRECATED_1_0(X) X 35 35 #else 36 - #define __LIBBPF_MARK_DEPRECATED_0_6(X) 37 - #endif 38 - #if __LIBBPF_CURRENT_VERSION_GEQ(0, 7) 39 - #define __LIBBPF_MARK_DEPRECATED_0_7(X) X 40 - #else 41 - #define __LIBBPF_MARK_DEPRECATED_0_7(X) 42 - #endif 43 - #if __LIBBPF_CURRENT_VERSION_GEQ(0, 8) 44 - #define __LIBBPF_MARK_DEPRECATED_0_8(X) X 45 - #else 46 - #define __LIBBPF_MARK_DEPRECATED_0_8(X) 36 + #define __LIBBPF_MARK_DEPRECATED_1_0(X) 47 37 #endif 48 38 49 39 /* This set of internal macros allows to do "function overloading" based on