Skip to content
Commit 19856a52 authored by Breno Leitao's avatar Breno Leitao Committed by Alexei Starovoitov
Browse files

net: filter: Avoid shadowing variable in bpf_convert_ctx_access()



Rename the local variable 'off' to 'offset' to avoid shadowing the existing
'off' variable that is declared as an `int` in the outer scope of
bpf_convert_ctx_access().

This fixes a compiler warning:

 net/core/filter.c:9679:8: warning: declaration shadows a local variable [-Wshadow]

Signed-off-by: default avatarBreno Leitao <leitao@debian.org>
Signed-off-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
Acked-by: default avatarYonghong Song <yonghong.song@linux.dev>
Link: https://patch.msgid.link/20250228-fix_filter-v1-1-ce13eae66fe9@debian.org


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 282f0922
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment