aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/queue_stack_map.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2020-05-05 14:07:12 +0000
committerAlexei Starovoitov <[email protected]>2020-05-05 18:59:32 +0000
commit5447e8e01e101ba19fe5b7551f02d37367156f6b (patch)
treec13c56ae37086a6ef504ef8930bd154fdba8c8fd /tools/testing/selftests/bpf/prog_tests/queue_stack_map.c
parentxsk: Remove unnecessary member in xdp_umem (diff)
downloadkernel-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