bpf: make an argument const in the bpf_map_sum_elem_count kfunc
authorAnton Protopopov <aspsk@isovalent.com>
Wed, 19 Jul 2023 09:29:51 +0000 (09:29 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Jul 2023 16:48:52 +0000 (09:48 -0700)
commit9c29804961c1bbf5c879a1879fe5fcac6364736f
tree5ce13b8e01775fcd73924dbb3d35ee81c6a98264
parent5ba190c29cf92f157bd63c9909c7050d6dc43df7
bpf: make an argument const in the bpf_map_sum_elem_count kfunc

We use the map pointer only to read the counter values, no locking
involved, so mark the argument as const.

Signed-off-by: Anton Protopopov <aspsk@isovalent.com>
Link: https://lore.kernel.org/r/20230719092952.41202-4-aspsk@isovalent.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/map_iter.c