Re: [PATCH bpf-next] bpftool: fix a bug in subskeleton code generation

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

 



Hello:

This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:

On Sat, 19 Mar 2022 20:20:09 -0700 you wrote:
> Compiled with clang by adding LLVM=1 both kernel and selftests/bpf
> build, I hit the following compilation error:
> 
> In file included from /.../tools/testing/selftests/bpf/prog_tests/subskeleton.c:6:
>   ./test_subskeleton_lib.subskel.h:168:6: error: variable 'err' is used uninitialized whenever
>       'if' condition is true [-Werror,-Wsometimes-uninitialized]
>           if (!s->progs)
>               ^~~~~~~~~
>   ./test_subskeleton_lib.subskel.h:181:11: note: uninitialized use occurs here
>           errno = -err;
>                    ^~~
>   ./test_subskeleton_lib.subskel.h:168:2: note: remove the 'if' if its condition is always false
>           if (!s->progs)
>           ^~~~~~~~~~~~~~
> 
> [...]

Here is the summary with links:
  - [bpf-next] bpftool: fix a bug in subskeleton code generation
    https://git.kernel.org/bpf/bpf-next/c/f97b8b9bd630

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





[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