Re: [PATCH bpf-next] bpf: Fix build without BPF_SYSCALL, but with BPF_JIT.

2020-08-30 Thread Paul E. McKenney
On Sun, Aug 30, 2020 at 05:53:21PM -0700, Alexei Starovoitov wrote: > On Sun, Aug 30, 2020 at 03:03:13PM -0700, Paul E. McKenney wrote: > > On Sun, Aug 30, 2020 at 01:43:28PM -0700, Alexei Starovoitov wrote: > > > From: Alexei Starovoitov > > > > > > When CONFIG_BPF_SYSCALL is not set, but CONFIG

Re: [PATCH bpf-next] bpf: Fix build without BPF_SYSCALL, but with BPF_JIT.

2020-08-30 Thread Alexei Starovoitov
On Sun, Aug 30, 2020 at 03:03:13PM -0700, Paul E. McKenney wrote: > On Sun, Aug 30, 2020 at 01:43:28PM -0700, Alexei Starovoitov wrote: > > From: Alexei Starovoitov > > > > When CONFIG_BPF_SYSCALL is not set, but CONFIG_BPF_JIT=y > > the kernel build fails: > > In file included from ../kernel/bpf

Re: [PATCH bpf-next] bpf: Fix build without BPF_SYSCALL, but with BPF_JIT.

2020-08-30 Thread Paul E. McKenney
On Sun, Aug 30, 2020 at 01:43:28PM -0700, Alexei Starovoitov wrote: > From: Alexei Starovoitov > > When CONFIG_BPF_SYSCALL is not set, but CONFIG_BPF_JIT=y > the kernel build fails: > In file included from ../kernel/bpf/trampoline.c:11: > ../kernel/bpf/trampoline.c: In function ‘bpf_trampoline_up

[PATCH bpf-next] bpf: Fix build without BPF_SYSCALL, but with BPF_JIT.

2020-08-30 Thread Alexei Starovoitov
From: Alexei Starovoitov When CONFIG_BPF_SYSCALL is not set, but CONFIG_BPF_JIT=y the kernel build fails: In file included from ../kernel/bpf/trampoline.c:11: ../kernel/bpf/trampoline.c: In function ‘bpf_trampoline_update’: ../kernel/bpf/trampoline.c:220:39: error: ‘call_rcu_tasks_trace’ undeclar

Re: [PATCH bpf-next] bpf: fix build without bpf_syscall

2019-02-28 Thread Song Liu
On Wed, Feb 27, 2019 at 6:32 PM Alexei Starovoitov wrote: > > wrap bpf_stats_enabled sysctl with #ifdef > > Reported-by: Stephen Rothwell > Fixes: 492ecee892c2 ("bpf: enable program stats") > Signed-off-by: Alexei Starovoitov Acked-by: Song Liu > --- > kernel/sysctl.c | 7 +-- > 1 file ch

[PATCH bpf-next] bpf: fix build without bpf_syscall

2019-02-27 Thread Alexei Starovoitov
wrap bpf_stats_enabled sysctl with #ifdef Reported-by: Stephen Rothwell Fixes: 492ecee892c2 ("bpf: enable program stats") Signed-off-by: Alexei Starovoitov --- kernel/sysctl.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 86e0