Skip to contentSkip to conversation

Add missing linux/bpf_common.h

PATCH New Peter Seiderer 1 participant 1 message Nov 7, 2018

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add missing linux/bpf_common.h

File needed by linux/bpf.h, add copy from linux-4.19.1 (and add to sync-with-kernel Makefile target).

---
Changes v1 -> v2:
- add linux/bpf_common.h to sync-with-kernel target

---
 Makefile.am                |  4 ++-
 include/linux/bpf_common.h | 57 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+), 1 deletion(-)
 create mode 100644 include/linux/bpf_common.h
Makefile.am +3 -1
index 52f8e4c2..b0b8a098 100644
@@ -26,7 +26,8 @@ sync-with-kernel:
 	      ! -f $(KERNEL_DIR)/usr/include/linux/dvb/frontend.h -o \
 	      ! -f $(KERNEL_DIR)/usr/include/linux/dvb/dmx.h -o \
 	      ! -f $(KERNEL_DIR)/usr/include/linux/lirc.h -o \
-	      ! -f $(KERNEL_DIR)/usr/include/linux/bpf.h ]; then \
+	      ! -f $(KERNEL_DIR)/usr/include/linux/bpf.h -o \
+	      ! -f $(KERNEL_DIR)/usr/include/linux/bpf_common.h ]; then \
 	  echo "Error you must set KERNEL_DIR to point to an extracted kernel source dir"; \
 	  echo "and run 'make headers_install' in \$$KERNEL_DIR."; \
 	  exit 1; \
@@ -45,6 +46,7 @@ sync-with-kernel:
 	cp -a $(KERNEL_DIR)/usr/include/linux/dvb/dmx.h $(top_srcdir)/include/linux/dvb
 	cp -a $(KERNEL_DIR)/usr/include/linux/lirc.h $(top_srcdir)/include/linux
 	cp -a $(KERNEL_DIR)/usr/include/linux/bpf.h $(top_srcdir)/include/linux
+	cp -a $(KERNEL_DIR)/usr/include/linux/bpf_common.h $(top_srcdir)/include/linux
 	cp -a $(KERNEL_DIR)/usr/include/linux/cec.h $(top_srcdir)/include/linux
 	cp -a $(KERNEL_DIR)/usr/include/linux/cec-funcs.h $(top_srcdir)/include/linux
 	cp -a $(KERNEL_DIR)/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c $(top_srcdir)/utils/common
include/linux/bpf_common.h new file +57 -0

57 lines not on this page · raw message

--
2.19.1