diff options
Diffstat (limited to 'tools/lib/bpf')
| -rw-r--r-- | tools/lib/bpf/Makefile | 4 | ||||
| -rw-r--r-- | tools/lib/bpf/libbpf.c | 2 | 
2 files changed, 4 insertions, 2 deletions
| diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index bf8ed134cb8a..9ae8f4ef0aac 100644 --- a/tools/lib/bpf/Makefile +++ b/tools/lib/bpf/Makefile @@ -59,7 +59,7 @@ FEATURE_USER = .libbpf  FEATURE_TESTS = libelf libelf-mmap zlib bpf reallocarray  FEATURE_DISPLAY = libelf zlib bpf -INCLUDES = -I. -I$(srctree)/tools/include -I$(srctree)/tools/arch/$(ARCH)/include/uapi -I$(srctree)/tools/include/uapi +INCLUDES = -I. -I$(srctree)/tools/include -I$(srctree)/tools/include/uapi  FEATURE_CHECK_CFLAGS-bpf = $(INCLUDES)  check_feat := 1 @@ -152,6 +152,7 @@ GLOBAL_SYM_COUNT = $(shell readelf -s --wide $(BPF_IN_SHARED) | \  			   awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {print $$NF}' | \  			   sort -u | wc -l)  VERSIONED_SYM_COUNT = $(shell readelf --dyn-syms --wide $(OUTPUT)libbpf.so | \ +			      awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {print $$NF}' | \  			      grep -Eo '[^ ]+@LIBBPF_' | cut -d@ -f1 | sort -u | wc -l)  CMD_TARGETS = $(LIB_TARGET) $(PC_FILE) @@ -219,6 +220,7 @@ check_abi: $(OUTPUT)libbpf.so  		    awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {print $$NF}'|  \  		    sort -u > $(OUTPUT)libbpf_global_syms.tmp;		 \  		readelf --dyn-syms --wide $(OUTPUT)libbpf.so |		 \ +		    awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {print $$NF}'|  \  		    grep -Eo '[^ ]+@LIBBPF_' | cut -d@ -f1 |		 \  		    sort -u > $(OUTPUT)libbpf_versioned_syms.tmp; 	 \  		diff -u $(OUTPUT)libbpf_global_syms.tmp			 \ diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 0ad0b0491e1f..7253b833576c 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -5203,8 +5203,8 @@ static int bpf_object__collect_map_relos(struct bpf_object *obj,  	int i, j, nrels, new_sz;  	const struct btf_var_secinfo *vi = NULL;  	const struct btf_type *sec, *var, *def; +	struct bpf_map *map = NULL, *targ_map;  	const struct btf_member *member; -	struct bpf_map *map, *targ_map;  	const char *name, *mname;  	Elf_Data *symbols;  	unsigned int moff; |