From: Alexei Starovoitov Date: Thu, 9 Oct 2014 22:16:41 +0000 (-0700) Subject: net: bpf: fix bpf syscall dependence on anon_inodes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=38b3629adb8c048dda8b98e888505c79ed33ae92;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git net: bpf: fix bpf syscall dependence on anon_inodes minimal configurations where EPOLL, PERF_EVENTS, etc are disabled, but NET is enabled, are failing to build with link error: kernel/built-in.o: In function `bpf_prog_load': syscall.c:(.text+0x3b728): undefined reference to `anon_inode_getfd' fix it by selecting ANON_INODES when NET is enabled Reported-by: Michal Sojka Signed-off-by: Alexei Starovoitov Signed-off-by: David S. Miller --- diff --git a/net/Kconfig b/net/Kconfig index d6b138e2c263..6272420a721b 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -6,6 +6,7 @@ menuconfig NET bool "Networking support" select NLATTR select GENERIC_NET_UTILS + select ANON_INODES ---help--- Unless you really know what you are doing, you should say Y here. The reason is that some programs need kernel networking support even