Re: [PATCH net] net: bpf: fix bpf syscall dependence on anon_inodes

From: David Miller
Date: Fri Oct 10 2014 - 15:04:06 EST


From: Alexei Starovoitov <ast@xxxxxxxxxxxx>
Date: Thu, 9 Oct 2014 15:16:41 -0700

> 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@xxxxxxxxxxx>
> Signed-off-by: Alexei Starovoitov <ast@xxxxxxxxxxxx>
> ---
>
> I understand that 'select' is highly non-recommended for all good reasons,
> but here 'depends on' is very user unfriendly, since ANON_INODES is
> a hidden config that users cannot select directly.

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/