diff options
| author | Daniel T. Lee <[email protected]> | 2022-12-18 15:14:52 +0900 |
|---|---|---|
| committer | Martin KaFai Lau <[email protected]> | 2022-12-19 14:21:05 -0800 |
| commit | 71135b77aac75769f6dae81ac4725405f1015d22 (patch) | |
| tree | a6635a80c7e1ac3eb5bba64a534532084650ed6a /tools/perf/scripts/python | |
| parent | 13aa2a92840dd49a64362ddd1e4d16084a4b9e0f (diff) | |
samples/bpf: replace meaningless counter with tracex4
Currently, compiling samples/bpf with LLVM warns about the unused but
set variable with tracex4_user.
./samples/bpf/tracex4_user.c:54:14:
warning: variable 'i' set but not used [-Wunused-but-set-variable]
int map_fd, i, j = 0;
^
1 warning generated.
This commit resolve this compiler warning by replacing the meaningless
counter.
Signed-off-by: Daniel T. Lee <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions