net: bpf: fix bpf syscall dependence on anon_inodes
authorAlexei Starovoitov <ast@plumgrid.com>
Thu, 9 Oct 2014 22:16:41 +0000 (15:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Oct 2014 19:02:23 +0000 (15:02 -0400)
commit38b3629adb8c048dda8b98e888505c79ed33ae92
tree7a697476e9d51b10c40d6246fc866be024c94ea8
parent7b6fa1eef68591b0ba27f16c149180ce1cf7047f
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 <sojkam1@fel.cvut.cz>
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/Kconfig