Re: [PATCH] bpf: fix implicit declaration of bpf_prog_add

2016-07-20 Thread David Miller
From: Brenden Blanco Date: Wed, 20 Jul 2016 07:55:52 -0700 > For the ifndef case of CONFIG_BPF_SYSCALL, an inline version of > bpf_prog_add needs to exist otherwise the build breaks on some configs. > > drivers/net/ethernet/mellanox/mlx4/en_netdev.c:2544:10: error: implicit > declaration of fu

Re: [PATCH] bpf: fix implicit declaration of bpf_prog_add

2016-07-20 Thread Alexei Starovoitov
On Wed, Jul 20, 2016 at 07:55:52AM -0700, Brenden Blanco wrote: > For the ifndef case of CONFIG_BPF_SYSCALL, an inline version of > bpf_prog_add needs to exist otherwise the build breaks on some configs. > > drivers/net/ethernet/mellanox/mlx4/en_netdev.c:2544:10: error: implicit > declaration of

[PATCH] bpf: fix implicit declaration of bpf_prog_add

2016-07-20 Thread Brenden Blanco
For the ifndef case of CONFIG_BPF_SYSCALL, an inline version of bpf_prog_add needs to exist otherwise the build breaks on some configs. drivers/net/ethernet/mellanox/mlx4/en_netdev.c:2544:10: error: implicit declaration of function 'bpf_prog_add' prog = bpf_prog_add(prog, priv->rx_ring_nu