[net] selftests/tls: fix selftests after adding ChaCha20-Poly1305

Subsystems: kernel selftest framework, networking [general], networking [tls], the rest

2 messages, 2 authors, 2021-01-09 · open the first message on its own page

[net] selftests/tls: fix selftests after adding ChaCha20-Poly1305

From: Vadim Fedorenko <hidden>
Date: 2021-01-08 21:49:13

TLS selftests where broken because of wrong variable types used.
Fix it by changing u16 -> uint16_t

Fixes: 4f336e88a870 ("selftests/tls: add CHACHA20-POLY1305 to tls selftests")
Reported-by: kernel test robot <redacted>
Signed-off-by: Vadim Fedorenko <redacted>
---
 tools/testing/selftests/net/tls.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/net/tls.c b/tools/testing/selftests/net/tls.c
index cb0d189..e0088c2 100644
--- a/tools/testing/selftests/net/tls.c
+++ b/tools/testing/selftests/net/tls.c
@@ -103,8 +103,8 @@
 
 FIXTURE_VARIANT(tls)
 {
-	u16 tls_version;
-	u16 cipher_type;
+	uint16_t tls_version;
+	uint16_t cipher_type;
 };
 
 FIXTURE_VARIANT_ADD(tls, 12_gcm)
-- 
1.8.3.1

Re: [net] selftests/tls: fix selftests after adding ChaCha20-Poly1305

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-01-09 22:41:05

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Sat,  9 Jan 2021 00:37:45 +0300 you wrote:
TLS selftests where broken because of wrong variable types used.
Fix it by changing u16 -> uint16_t

Fixes: 4f336e88a870 ("selftests/tls: add CHACHA20-POLY1305 to tls selftests")
Reported-by: kernel test robot <redacted>
Signed-off-by: Vadim Fedorenko <redacted>

[...]
Here is the summary with links:
  - [net] selftests/tls: fix selftests after adding ChaCha20-Poly1305
    https://git.kernel.org/netdev/net/c/3502bd9b5762

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help