[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171212012532.30268-3-daniel@iogearbox.net>
Date: Tue, 12 Dec 2017 02:25:31 +0100
From: Daniel Borkmann <daniel@...earbox.net>
To: ast@...nel.org
Cc: netdev@...r.kernel.org, Daniel Borkmann <daniel@...earbox.net>,
Hendrik Brueckner <brueckner@...ux.vnet.ibm.com>,
Richard Weinberger <richard@...ma-star.at>
Subject: [PATCH bpf 2/3] bpf: fix build issues on um due to mising bpf_perf_event.h
Since c895f6f703ad ("bpf: correct broken uapi for
BPF_PROG_TYPE_PERF_EVENT program type") um (uml) won't build
on i386 or x86_64:
[...]
CC init/main.o
In file included from ../include/linux/perf_event.h:18:0,
from ../include/linux/trace_events.h:10,
from ../include/trace/syscall.h:7,
from ../include/linux/syscalls.h:82,
from ../init/main.c:20:
../include/uapi/linux/bpf_perf_event.h:11:32: fatal error:
asm/bpf_perf_event.h: No such file or directory #include
<asm/bpf_perf_event.h>
[...]
Lets add missing bpf_perf_event.h also to um arch. This seems
to be the only one still missing.
Fixes: c895f6f703ad ("bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type")
Reported-by: Randy Dunlap <rdunlap@...radead.org>
Suggested-by: Richard Weinberger <richard@...ma-star.at>
Signed-off-by: Daniel Borkmann <daniel@...earbox.net>
Tested-by: Randy Dunlap <rdunlap@...radead.org>
Cc: Hendrik Brueckner <brueckner@...ux.vnet.ibm.com>
Cc: Richard Weinberger <richard@...ma-star.at>
Acked-by: Alexei Starovoitov <ast@...nel.org>
---
arch/um/include/asm/Kbuild | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/um/include/asm/Kbuild b/arch/um/include/asm/Kbuild
index 50a32c3..73c57f6 100644
--- a/arch/um/include/asm/Kbuild
+++ b/arch/um/include/asm/Kbuild
@@ -1,4 +1,5 @@
generic-y += barrier.h
+generic-y += bpf_perf_event.h
generic-y += bug.h
generic-y += clkdev.h
generic-y += current.h
--
2.9.5
Powered by blists - more mailing lists