Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Anton Protopopov and committed by
Andrii Nakryiko
2f1c5963 4db98ab4

+1 -1
+1 -1
tools/testing/selftests/bpf/benchs/bench_bpf_hashmap_full_update.c
··· 68 68 bpf_map_update_elem(map_fd, &i, &i, BPF_ANY); 69 69 } 70 70 71 - void hashmap_report_final(struct bench_res res[], int res_cnt) 71 + static void hashmap_report_final(struct bench_res res[], int res_cnt) 72 72 { 73 73 unsigned int nr_cpus = bpf_num_possible_cpus(); 74 74 int i;