selftests/bpf: fix RELEASE=1 compilation for sock_addr.c
Subsystems (3)
Andrii Nakryiko
maintainerPATCH 1/1 selftests/bpf: fix RELEASE=1 compilation for sock_addr.c
When building selftests with RELEASE=1 using GCC compiler, it complaints about uninitialized err. Fix the problem.
Signed-off-by Andrii Nakryiko <[email protected]>
--- tools/testing/selftests/bpf/prog_tests/sock_addr.c | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/bpf/prog_tests/sock_addr.c +1 -0
@@ -2642,6 +2642,7 @@ void test_sock_addr(void)break ;default :ASSERT_TRUE (false,"Unknown sock addr test type" ); + err = -EINVAL ;break ; }
Signature · 1 line
2.43.0
This patch was applied to bpf/bpf-next.git (master) by Martin KaFai Lau <[email protected]>:
Hello:
This patch was applied to bpf/bpf-next.git (master) by Martin KaFai Lau <[email protected]>:
Quoted 7 lines · On Tue, 30 Jul 2024 16:18:05 -0700 you wrote:
When building selftests with RELEASE=1 using GCC compiler, it complaints about uninitialized err. Fix the problem.
Signed-off-by Andrii Nakryiko <[email protected]>--- tools/testing/selftests/bpf/prog_tests/sock_addr.c | 1 + 1 file changed, 1 insertion(+)
Here is the summary with links:
- [bpf-next] selftests/bpf: fix RELEASE=1 compilation for sock_addr.c
https://git.kernel.org/bpf/bpf-next/c/92cc2456e977
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html