diff options
author | Anton Protopopov <aspsk@isovalent.com> | 2023-02-13 09:15:14 +0000 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2023-02-15 16:29:31 -0800 |
commit | 2f1c59637fb17dbb2a725c3bd48e4d9d3809df89 (patch) | |
tree | ca331ef08182343de5bfaea180d904dbe2045453 /tools | |
parent | 4db98ab445c58bd26c303ef7a10ccd8f049acc22 (diff) |
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.c | 2 |
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; |