diff options
author | Breno Leitao <leitao@debian.org> | 2025-02-28 10:43:34 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-03-15 11:48:27 -0700 |
commit | 19856a524729435dac4fa93421b2f0920c89a4b2 (patch) | |
tree | f3c8f17826b5c5b941db5d9c9b1b975b013ccc69 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 282f09227112ebdfeb9c1c1378b3fa47f3376243 (diff) |
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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions