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

tools: libbpf: remove libelf-getphdrnum feature detection

libbpf does not depend on libelf-getphdrnum feature, don't check it.

$ git grep HAVE_ELF_GETPHDRNUM_SUPPORT
tools/perf/Makefile.config: CFLAGS += -DHAVE_ELF_GETPHDRNUM_SUPPORT
tools/perf/util/symbol-elf.c:#ifndef HAVE_ELF_GETPHDRNUM_SUPPORT

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

Jakub Kicinski and committed by
Alexei Starovoitov
b4b5bffd ee583014

+1 -5
+1 -5
tools/lib/bpf/Makefile
··· 66 66 endif 67 67 68 68 FEATURE_USER = .libbpf 69 - FEATURE_TESTS = libelf libelf-getphdrnum libelf-mmap bpf reallocarray 69 + FEATURE_TESTS = libelf libelf-mmap bpf reallocarray 70 70 FEATURE_DISPLAY = libelf bpf 71 71 72 72 INCLUDES = -I. -I$(srctree)/tools/include -I$(srctree)/tools/arch/$(ARCH)/include/uapi -I$(srctree)/tools/include/uapi -I$(srctree)/tools/perf ··· 114 114 115 115 ifeq ($(feature-libelf-mmap), 1) 116 116 override CFLAGS += -DHAVE_LIBELF_MMAP_SUPPORT 117 - endif 118 - 119 - ifeq ($(feature-libelf-getphdrnum), 1) 120 - override CFLAGS += -DHAVE_ELF_GETPHDRNUM_SUPPORT 121 117 endif 122 118 123 119 ifeq ($(feature-reallocarray), 0)