summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAnton Protopopov <aspsk@isovalent.com>2023-02-13 10:15:14 +0100
committerAndrii Nakryiko <andrii@kernel.org>2023-02-16 01:29:31 +0100
commit2f1c59637fb17dbb2a725c3bd48e4d9d3809df89 (patch)
treeca331ef08182343de5bfaea180d904dbe2045453 /tools
parentselftest/bpf/benchs: Fix a typo in bpf_hashmap_full_update (diff)
downloadlinux-2f1c59637fb17dbb2a725c3bd48e4d9d3809df89.tar.xz
linux-2f1c59637fb17dbb2a725c3bd48e4d9d3809df89.zip
selftest/bpf/benchs: Make a function static in bpf_hashmap_full_update
The hashmap_report_final callback function defined in the benchs/bench_bpf_hashmap_full_update.c file should be static. Signed-off-by: Anton Protopopov <aspsk@isovalent.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20230213091519.1202813-3-aspsk@isovalent.com
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/bpf/benchs/bench_bpf_hashmap_full_update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/benchs/bench_bpf_hashmap_full_update.c b/tools/testing/selftests/bpf/benchs/bench_bpf_hashmap_full_update.c
index 44706acf632a..67f76415a362 100644
--- a/tools/testing/selftests/bpf/benchs/bench_bpf_hashmap_full_update.c
+++ b/tools/testing/selftests/bpf/benchs/bench_bpf_hashmap_full_update.c
@@ -68,7 +68,7 @@ static void setup(void)
bpf_map_update_elem(map_fd, &i, &i, BPF_ANY);
}
-void hashmap_report_final(struct bench_res res[], int res_cnt)
+static void hashmap_report_final(struct bench_res res[], int res_cnt)
{
unsigned int nr_cpus = bpf_num_possible_cpus();
int i;