original_kernel/drivers/media
Sean Young fdb5c4531c bpf: fix attach type BPF_LIRC_MODE2 dependency wrt CONFIG_CGROUP_BPF
If the kernel is compiled with CONFIG_CGROUP_BPF not enabled, it is not
possible to attach, detach or query IR BPF programs to /dev/lircN devices,
making them impossible to use. For embedded devices, it should be possible
to use IR decoding without cgroups or CONFIG_CGROUP_BPF enabled.

This change requires some refactoring, since bpf_prog_{attach,detach,query}
functions are now always compiled, but their code paths for cgroups need
moving out. Rather than a #ifdef CONFIG_CGROUP_BPF in kernel/bpf/syscall.c,
moving them to kernel/bpf/cgroup.c and kernel/bpf/sockmap.c does not
require #ifdefs since that is already conditionally compiled.

Fixes: f4364dcfc8 ("media: rc: introduce BPF_PROG_LIRC_MODE2")
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-06-26 11:28:38 +02:00
..
cec
common treewide: Use array_size() in vzalloc() 2018-06-12 16:19:22 -07:00
dvb-core docs: Fix some broken references 2018-06-15 18:10:01 -03:00
dvb-frontends media: dvb: point to the location of the old README.dvb-usb file 2018-06-15 18:10:01 -03:00
firewire
i2c media: max2175: fix location of driver's companion documentation 2018-06-15 18:10:41 -03:00
mmc
pci media: v4l: fix broken video4linux docs locations 2018-06-15 18:10:01 -03:00
platform Solve a series of broken links for files under Documentation: 2018-06-17 05:25:18 +09:00
radio media: v4l: fix broken video4linux docs locations 2018-06-15 18:10:01 -03:00
rc bpf: fix attach type BPF_LIRC_MODE2 dependency wrt CONFIG_CGROUP_BPF 2018-06-26 11:28:38 +02:00
spi
tuners
usb media: v4l: fix broken video4linux docs locations 2018-06-15 18:10:01 -03:00
v4l2-core treewide: Use array_size() in vzalloc() 2018-06-12 16:19:22 -07:00
Kconfig
Makefile
media-device.c
media-devnode.c
media-entity.c