Zi Shen Lim
002245cc64
bpf: fix missing header inclusion
...
Commit 0fc174dea5 ("ebpf: make internal bpf API independent of
CONFIG_BPF_SYSCALL ifdefs") introduced usage of ERR_PTR() in
bpf_prog_get(), however did not include linux/err.h.
Without this patch, when compiling arm64 BPF without CONFIG_BPF_SYSCALL:
...
In file included from arch/arm64/net/bpf_jit_comp.c:21:0:
include/linux/bpf.h: In function 'bpf_prog_get':
include/linux/bpf.h:235:9: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration]
return ERR_PTR(-EOPNOTSUPP);
^
include/linux/bpf.h:235:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
In file included from include/linux/rwsem.h:17:0,
from include/linux/mm_types.h:10,
from include/linux/sched.h:27,
from arch/arm64/include/asm/compat.h:25,
from arch/arm64/include/asm/stat.h:23,
from include/linux/stat.h:5,
from include/linux/compat.h:12,
from include/linux/filter.h:10,
from arch/arm64/net/bpf_jit_comp.c:22:
include/linux/err.h: At top level:
include/linux/err.h:23:35: error: conflicting types for 'ERR_PTR'
static inline void * __must_check ERR_PTR(long error)
^
In file included from arch/arm64/net/bpf_jit_comp.c:21:0:
include/linux/bpf.h:235:9: note: previous implicit declaration of 'ERR_PTR' was here
return ERR_PTR(-EOPNOTSUPP);
^
...
Fixes: 0fc174dea5 ("ebpf: make internal bpf API independent of CONFIG_BPF_SYSCALL ifdefs")
Suggested-by: Daniel Borkmann <daniel@iogearbox.net >
Signed-off-by: Zi Shen Lim <zlim.lnx@gmail.com >
Acked-by: Daniel Borkmann <daniel@iogearbox.net >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-10 23:11:49 -07:00
..
2016-05-24 11:00:20 -07:00
2016-05-09 11:07:28 +02:00
2016-05-30 23:00:22 +02:00
2016-05-09 16:18:37 +02:00
2016-05-17 10:15:34 +05:30
2016-06-02 17:59:44 +01:00
2016-05-28 12:32:01 -07:00
2016-05-05 23:23:05 -04:00
2016-06-10 08:32:24 -07:00
2016-05-26 09:36:10 -07:00
2016-05-10 15:44:18 -07:00
2016-04-29 11:02:33 +02:00
2016-04-29 16:44:47 +02:00
2016-06-09 22:21:29 -07:00
2016-06-08 11:11:00 -07:00
2016-05-17 18:06:18 +01:00
2016-05-18 13:14:02 -07:00
2016-05-28 16:15:25 -07:00
2016-05-04 10:25:58 -07:00
2016-06-04 21:32:40 -04:00
2016-05-23 17:53:39 -07:00
2016-05-05 09:58:52 +02:00
2016-05-18 18:46:55 -07:00
2016-05-04 23:41:14 +02:00
2016-05-13 14:01:43 +02:00
2016-06-07 22:07:09 -04:00
2016-05-05 13:03:29 -06:00
2016-05-09 09:24:02 -07:00
2016-05-26 19:34:26 -07:00
2016-05-10 08:41:37 -06:00
2016-05-19 19:12:14 -07:00
2016-06-10 23:11:49 -07:00
2016-06-01 14:56:57 -07:00
2016-05-20 17:58:30 -07:00
2016-05-19 19:12:14 -07:00
2016-05-19 19:12:14 -07:00
2016-05-23 11:48:48 -07:00
2016-05-03 14:59:30 -07:00
2016-05-06 14:58:25 +02:00
2016-05-06 14:58:25 +02:00
2016-06-02 23:05:27 +02:00
2016-05-06 14:58:22 +02:00
2016-05-19 19:12:14 -07:00
2016-05-13 14:01:59 +02:00
2016-05-26 20:00:28 -07:00
2016-05-28 16:15:25 -07:00
2016-05-19 19:12:14 -07:00
2016-05-03 11:20:07 +09:00
2016-05-20 21:26:15 -07:00
2016-06-05 10:36:01 -07:00
2016-05-31 22:12:43 +05:30
2016-05-09 15:33:29 +02:00
2016-05-09 15:33:29 +02:00
2016-05-20 17:58:30 -07:00
2016-05-27 16:03:22 -07:00
2016-05-17 15:48:12 -04:00
2016-05-02 16:24:49 +02:00
2016-05-31 22:17:05 +05:30
2016-05-02 19:49:28 -04:00
2016-05-16 13:49:32 -04:00
2016-05-27 17:14:05 -07:00
2016-06-01 10:29:39 +02:00
2016-05-07 10:32:33 -07:00
2016-05-19 19:12:14 -07:00
2016-05-17 17:11:27 -07:00
2016-05-20 17:58:30 -07:00
2016-05-10 15:43:09 -04:00
2016-05-20 17:58:30 -07:00
2016-05-28 15:48:31 -04:00
2016-05-19 19:12:14 -07:00
2016-05-20 17:58:30 -07:00
2016-05-19 19:12:14 -07:00
2016-05-20 17:58:30 -07:00
2016-04-30 14:01:37 -07:00
2016-05-04 22:39:17 +02:00
2016-05-04 22:39:17 +02:00
2016-05-03 16:00:54 -04:00
2016-05-01 09:23:52 -04:00
2016-05-03 18:23:02 +01:00
2016-05-03 18:23:02 +01:00
2016-05-09 19:39:17 +02:00
2016-05-16 15:12:02 -05:00
2016-06-09 23:34:42 -07:00
2016-05-02 13:42:51 +02:00
2016-05-11 22:37:54 +02:00
2016-05-02 13:42:51 +02:00
2016-05-02 13:42:50 +02:00
2016-05-02 09:32:04 -07:00
2016-05-16 11:14:29 -04:00
2016-05-05 22:35:54 -04:00
2016-05-20 17:58:30 -07:00
2016-05-20 17:58:30 -07:00
2016-05-20 22:20:48 -07:00
2016-05-20 21:26:15 -07:00
2016-05-23 17:04:14 -07:00
2016-05-25 16:12:05 +02:00
2016-05-06 10:26:07 +02:00
2016-05-09 12:36:46 -04:00
2016-04-28 16:23:16 -07:00
2016-05-06 12:51:10 -06:00
2016-05-17 12:06:35 +02:00
2016-05-16 14:47:16 -07:00
2016-05-19 09:21:36 -07:00
2016-05-03 15:07:35 -07:00
2016-05-20 17:58:30 -07:00
2016-05-27 15:23:32 -07:00
2016-05-19 19:12:14 -07:00
2016-05-19 19:12:14 -07:00
2016-05-19 19:12:14 -07:00
2016-05-26 15:35:44 -07:00
2016-05-27 15:57:31 -07:00
2016-04-28 11:44:19 +02:00
2016-05-20 17:58:30 -07:00
2016-06-05 10:36:01 -07:00
2016-05-04 00:52:29 -04:00
2016-06-03 19:37:21 -04:00
2016-06-10 18:00:57 -07:00
2016-05-17 15:48:12 -04:00
2016-05-17 15:47:55 -04:00
2016-05-17 15:05:23 -07:00
2016-05-26 10:33:33 -07:00
2016-05-23 17:04:14 -07:00
2016-05-19 19:12:14 -07:00
2016-05-02 09:13:35 -06:00
2016-05-01 14:01:00 -07:00
2016-05-12 07:07:42 -05:00
2016-05-16 07:22:35 -05:00
2016-05-02 09:00:56 -05:00
2016-05-09 15:33:29 +02:00
2016-05-20 14:51:34 -07:00
2016-05-23 17:04:14 -07:00
2016-05-19 19:12:14 -07:00
2016-06-03 15:06:22 -07:00
2016-05-19 19:12:14 -07:00
2016-05-20 17:58:30 -07:00
2016-05-20 17:58:30 -07:00
2016-05-19 13:10:54 -07:00
2016-05-03 10:35:49 -05:00
2016-05-20 17:58:30 -07:00
2016-05-25 17:05:40 -07:00
2016-05-10 15:06:19 -04:00
2016-05-05 01:38:44 +02:00
2016-05-19 19:12:14 -07:00
2016-05-20 17:58:30 -07:00
2016-05-17 14:48:03 +02:00
2016-05-20 17:58:30 -07:00
2016-05-20 17:58:30 -07:00
2016-05-12 15:50:19 -07:00
2016-05-31 22:12:43 +05:30
2016-05-06 11:09:00 -07:00
2016-05-26 00:04:58 -04:00
2016-06-09 23:30:12 -07:00
2016-05-26 15:35:44 -07:00
2016-05-31 11:59:06 -07:00
2016-05-17 14:41:03 -07:00
2016-04-30 09:26:55 -07:00
2016-05-26 15:35:44 -07:00
2016-04-30 09:26:55 -07:00
2016-04-30 09:26:55 -07:00
2016-05-23 17:04:14 -07:00
2016-06-03 19:37:21 -04:00
2016-05-19 19:12:14 -07:00
2016-05-19 19:12:14 -07:00
2016-05-26 15:35:44 -07:00
2016-05-08 23:46:14 -04:00
2016-05-03 14:59:30 -07:00
2016-05-19 19:12:14 -07:00
2016-05-28 15:42:50 -04:00
2016-05-20 17:58:30 -07:00
2016-04-29 17:37:10 -07:00
2016-05-20 17:58:30 -07:00
2016-05-17 07:28:28 -07:00
2016-05-19 19:12:14 -07:00
2016-06-01 21:13:43 +02:00
2016-05-06 10:42:29 +02:00
2016-05-18 18:55:19 -07:00
2016-05-20 20:57:27 -07:00
2016-05-23 17:04:14 -07:00
2016-05-04 16:55:11 -04:00
2016-05-03 14:32:07 -07:00
2016-05-20 17:58:30 -07:00
2016-06-10 23:03:55 -07:00
2016-05-23 11:48:48 -07:00
2016-05-19 19:12:14 -07:00
2016-05-27 20:09:16 -04:00
2016-05-20 17:58:30 -07:00