Linux Kernels

bpf: include errno.h from bpf-cgroup.h

This change “bpf: include errno.h from bpf-cgroup.h” (commit f292b87) in Linux kernel is authored by Roman Gushchin <guro [at] fb.com> on Fri Jul 6 14:34:29 2018 -0700.

Description of "bpf: include errno.h from bpf-cgroup.h"

The change “bpf: include errno.h from bpf-cgroup.h” introduces changes as follows.

bpf: include errno.h from bpf-cgroup.h

Commit fdb5c4531c1e ("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: fdb5c4531c1e ("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>

Linux kernel releases containing commit f292b87

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes in "bpf: include errno.h from bpf-cgroup.h"

There is one line of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 include/linux/bpf-cgroup.h | 1 +
 1 file changed, 1 insertion(+)
 
diff --git a/include/linux/bpf-cgroup.h b/include/linux/bpf-cgroup.h
index 79795c5fa7c3..d50c2f0a655a 100644
--- a/include/linux/bpf-cgroup.h
+++ b/include/linux/bpf-cgroup.h
@@ -2,6 +2,7 @@
 #ifndef _BPF_CGROUP_H
 #define _BPF_CGROUP_H
 
+#include <linux/errno.h>
 #include <linux/jump_label.h>
 #include <uapi/linux/bpf.h>
 

The commit for this change in Linux stable tree is f292b87 (patch).

Last modified: 2020/01/11 06:56