diff options
author | 2023-07-19 09:29:51 +0000 | |
---|---|---|
committer | 2023-07-19 09:48:52 -0700 | |
commit | 9c29804961c1bbf5c879a1879fe5fcac6364736f (patch) | |
tree | 5ce13b8e01775fcd73924dbb3d35ee81c6a98264 /kernel/bpf/helpers.c | |
parent | bpf: consider CONST_PTR_TO_MAP as trusted pointer to struct bpf_map (diff) | |
download | linux-rng-9c29804961c1bbf5c879a1879fe5fcac6364736f.tar.xz linux-rng-9c29804961c1bbf5c879a1879fe5fcac6364736f.zip |
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>
Diffstat (limited to 'kernel/bpf/helpers.c')
0 files changed, 0 insertions, 0 deletions