bpf: fix build without bpf_syscall
authorAlexei Starovoitov <ast@kernel.org>
Thu, 28 Feb 2019 02:30:44 +0000 (18:30 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 28 Feb 2019 23:44:58 +0000 (00:44 +0100)
commit3fcc5530bcb2a879e32bd940e6eafee328ac3647
tree5bf3686ff3763e7045aebabdf5bc7388c291f5bc
parent3bcd60444519616508f72df454cc596511e726d1
bpf: fix build without bpf_syscall

wrap bpf_stats_enabled sysctl with #ifdef

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: 492ecee892c2 ("bpf: enable program stats")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/sysctl.c