selftest/bpf/benchs: Make a function static in bpf_hashmap_full_update
authorAnton Protopopov <aspsk@isovalent.com>
Mon, 13 Feb 2023 09:15:14 +0000 (09:15 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 16 Feb 2023 00:29:31 +0000 (16:29 -0800)
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
tools/testing/selftests/bpf/benchs/bench_bpf_hashmap_full_update.c

index 44706acf632a7d44a958795935a998d204bc84a0..67f76415a362a6cec267b6ed9431ca365268ff01 100644 (file)
@@ -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;