]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: include errno.h from bpf-cgroup.h
authorRoman Gushchin <guro@fb.com>
Fri, 6 Jul 2018 21:34:29 +0000 (14:34 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 9 Jul 2018 08:33:49 +0000 (10:33 +0200)
commit752ab335627e35c24f39eb784be3d70882a0faeb
tree7def70e072530d3cfeb81a030f91c14c83340d81
parent464b46a8b7c8e5e087430dd9076c15fafc29c650
bpf: include errno.h from bpf-cgroup.h

Commit 56d595b22e27 ("bpf: fix attach type BPF_LIRC_MODE2 dependency
wrt CONFIG_CGROUP_BPF") caused some build issues, detected by 0-DAY
kernel test infrastructure.

The problem is that cgroup_bpf_prog_attach/detach/query() functions
can return -EINVAL error code, which is not defined. Fix this adding
errno.h to includes.

Fixes: 56d595b22e27 ("bpf: fix attach type BPF_LIRC_MODE2 dependency wrt CONFIG_CGROUP_BPF")
Signed-off-by: Roman Gushchin <guro@fb.com>
Cc: Sean Young <sean@mess.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/linux/bpf-cgroup.h