From: David S. Miller Date: Tue, 31 Dec 2019 21:37:13 +0000 (-0800) Subject: Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=31d518f35e1a80268a24a855be9477eb458540ad;p=linux.git Merge git://git./linux/kernel/git/netdev/net Simple overlapping changes in bpf land wrt. bpf_helper_defs.h handling. Signed-off-by: David S. Miller --- 31d518f35e1a80268a24a855be9477eb458540ad diff --cc tools/lib/bpf/Makefile index d4790121adf49,97830e46d1a05..d87830e7ea632 --- a/tools/lib/bpf/Makefile +++ b/tools/lib/bpf/Makefile @@@ -160,7 -160,7 +161,7 @@@ all: fixde all_cmd: $(CMD_TARGETS) check - $(BPF_IN_SHARED): force elfdep zdep bpfdep bpf_helper_defs.h -$(BPF_IN_SHARED): force elfdep bpfdep $(BPF_HELPER_DEFS) ++$(BPF_IN_SHARED): force elfdep zdep bpfdep $(BPF_HELPER_DEFS) @(test -f ../../include/uapi/linux/bpf.h -a -f ../../../include/uapi/linux/bpf.h && ( \ (diff -B ../../include/uapi/linux/bpf.h ../../../include/uapi/linux/bpf.h >/dev/null) || \ echo "Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h'" >&2 )) || true @@@ -178,12 -178,12 +179,12 @@@ echo "Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h'" >&2 )) || true $(Q)$(MAKE) $(build)=libbpf OUTPUT=$(SHARED_OBJDIR) CFLAGS="$(CFLAGS) $(SHLIB_FLAGS)" - $(BPF_IN_STATIC): force elfdep zdep bpfdep bpf_helper_defs.h -$(BPF_IN_STATIC): force elfdep bpfdep $(BPF_HELPER_DEFS) ++$(BPF_IN_STATIC): force elfdep zdep bpfdep $(BPF_HELPER_DEFS) $(Q)$(MAKE) $(build)=libbpf OUTPUT=$(STATIC_OBJDIR) - bpf_helper_defs.h: $(srctree)/tools/include/uapi/linux/bpf.h + $(BPF_HELPER_DEFS): $(srctree)/tools/include/uapi/linux/bpf.h $(Q)$(srctree)/scripts/bpf_helpers_doc.py --header \ - --file $(srctree)/tools/include/uapi/linux/bpf.h > bpf_helper_defs.h + --file $(srctree)/tools/include/uapi/linux/bpf.h > $(BPF_HELPER_DEFS) $(OUTPUT)libbpf.so: $(OUTPUT)libbpf.so.$(LIBBPF_VERSION) @@@ -251,10 -250,9 +252,10 @@@ install_headers: $(BPF_HELPER_DEFS $(call do_install,libbpf.h,$(prefix)/include/bpf,644); \ $(call do_install,btf.h,$(prefix)/include/bpf,644); \ $(call do_install,libbpf_util.h,$(prefix)/include/bpf,644); \ + $(call do_install,libbpf_common.h,$(prefix)/include/bpf,644); \ $(call do_install,xsk.h,$(prefix)/include/bpf,644); \ $(call do_install,bpf_helpers.h,$(prefix)/include/bpf,644); \ - $(call do_install,bpf_helper_defs.h,$(prefix)/include/bpf,644); \ + $(call do_install,$(BPF_HELPER_DEFS),$(prefix)/include/bpf,644); \ $(call do_install,bpf_tracing.h,$(prefix)/include/bpf,644); \ $(call do_install,bpf_endian.h,$(prefix)/include/bpf,644); \ $(call do_install,bpf_core_read.h,$(prefix)/include/bpf,644); diff --cc tools/testing/selftests/bpf/.gitignore index b139b3d75ebb0,1ff0a9f49c01c..301ac12d5d692 --- a/tools/testing/selftests/bpf/.gitignore +++ b/tools/testing/selftests/bpf/.gitignore @@@ -37,7 -38,6 +37,8 @@@ test_hashma test_btf_dump xdping test_cpp +*.skel.h /no_alu32 /bpf_gcc +/tools + bpf_helper_defs.h