Re: [bpf-next 2/3] samples/bpf: replace meaningless counter with tracex4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 12/17/22 7:38 AM, Daniel T. Lee wrote:
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 <danieltimlee@xxxxxxxxx>

Acked-by: Yonghong Song <yhs@xxxxxx>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux