Commit 19856a5
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: Breno Leitao <leitao@debian.org>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://patch.msgid.link/20250228-fix_filter-v1-1-ce13eae66fe9@debian.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>1 parent 282f092 commit 19856a5
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9637 | 9637 | | |
9638 | 9638 | | |
9639 | 9639 | | |
9640 | | - | |
| 9640 | + | |
9641 | 9641 | | |
9642 | 9642 | | |
9643 | 9643 | | |
| |||
9646 | 9646 | | |
9647 | 9647 | | |
9648 | 9648 | | |
9649 | | - | |
| 9649 | + | |
9650 | 9650 | | |
9651 | 9651 | | |
9652 | 9652 | | |
| |||
0 commit comments