diff options
| author | Arnd Bergmann <[email protected]> | 2020-05-05 14:07:12 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-05-05 18:59:32 +0000 |
| commit | 5447e8e01e101ba19fe5b7551f02d37367156f6b (patch) | |
| tree | c13c56ae37086a6ef504ef8930bd154fdba8c8fd /tools/testing/selftests/bpf/prog_tests/queue_stack_map.c | |
| parent | xsk: Remove unnecessary member in xdp_umem (diff) | |
| download | kernel-5447e8e01e101ba19fe5b7551f02d37367156f6b.tar.gz kernel-5447e8e01e101ba19fe5b7551f02d37367156f6b.zip | |
sysctl: Fix unused function warning
The newly added bpf_stats_handler function has the wrong #ifdef
check around it, leading to an unused-function warning when
CONFIG_SYSCTL is disabled:
kernel/sysctl.c:205:12: error: unused function 'bpf_stats_handler' [-Werror,-Wunused-function]
static int bpf_stats_handler(struct ctl_table *table, int write,
Fix the check to match the reference.
Fixes: d46edd671a14 ("bpf: Sharing bpf runtime stats with BPF_ENABLE_STATS")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Reviewed-by: Luis Chamberlain <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/queue_stack_map.c')
0 files changed, 0 insertions, 0 deletions
