Re: [linux-next:master 1465/2825] tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:557:13: warning: variable 'r' set but not used

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

 





On 2/1/24 12:36, Martin KaFai Lau wrote:
vim +/r +557 tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c

    553
    554    static int bpf_dummy_reg(void *kdata)
    555    {
    556        struct bpf_testmod_ops *ops = kdata;
  > 557        int r;

Kui-Feng, Please take a look. May be change the ".test_2" return type to "void" since it is not used.

    558
    559        r = ops->test_2(4, 3);
    560
    561        return 0;
    562    }
    563



The fix has been landed.  FYI!
https://lore.kernel.org/all/20240204061204.1864529-1-thinker.li@xxxxxxxxx/




[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