Skip to contentSkip to conversation

selftests/bpf: fix RELEASE=1 compilation for sock_addr.c

PATCH Applied Andrii Nakryiko 2 participants 2 messages Jul 30, 2024 – Jul 31, 2024

Subsystems (3)
lore
Share & tools
lore

Andrii Nakryiko

author maintainer
#0 lore raw

PATCH 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.

---
 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
index b880c564a204..a6ee7f8d4f79 100644
@@ -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
#1 lore raw
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.

---
 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