diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-03-04 21:34:12 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-03-07 10:28:26 +0100 |
commit | 78c3aff834f7939d1a2570e366e33f2a880d4d9e (patch) | |
tree | 74362a69bc3eef138fca1806755399074112c10d /block/blk-pm.h | |
parent | a10674bf2406afc2554f9c7d31b2dc65d6a27fd9 (diff) | |
download | linux-78c3aff834f7939d1a2570e366e33f2a880d4d9e.tar.gz linux-78c3aff834f7939d1a2570e366e33f2a880d4d9e.tar.bz2 linux-78c3aff834f7939d1a2570e366e33f2a880d4d9e.zip |
bpf: fix sysctl.c warning
When CONFIG_BPF_SYSCALL or CONFIG_SYSCTL is disabled, we get
a warning about an unused function:
kernel/sysctl.c:3331:12: error: 'proc_dointvec_minmax_bpf_stats' defined but not used [-Werror=unused-function]
static int proc_dointvec_minmax_bpf_stats(struct ctl_table *table, int write,
The CONFIG_BPF_SYSCALL check was already handled, but the SYSCTL check
is needed on top.
Fixes: 492ecee892c2 ("bpf: enable program stats")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Christian Brauner <christian@brauner.io>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'block/blk-pm.h')
0 files changed, 0 insertions, 0 deletions