* [PATCH net-next v2] selftests: tls: fix warning of uninitialized variable
@ 2025-12-05 16:32 Ankit Khushwaha
2025-12-06 10:27 ` Simon Horman
2025-12-10 9:20 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 5+ messages in thread
From: Ankit Khushwaha @ 2025-12-05 16:32 UTC (permalink / raw)
To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Simon Horman, Sabrina Dubroca
Cc: Shuah Khan, netdev, linux-kselftest, linux-kernel,
Ankit Khushwaha
In 'poll_partial_rec_async' a uninitialized char variable 'token' with
is used for write/read instruction to synchronize between threads
via a pipe.
tls.c:2833:26: warning: variable 'token' is uninitialized
when passed as a const pointer argument
Initialize 'token' to '\0' to silence compiler warning.
Signed-off-by: Ankit Khushwaha <ankitkhushwaha.linux@gmail.com>
---
compiler used: clang version 21.1.5 (Fedora 21.1.5-1.fc43).
changelog:
v2:
- update patch name and msg
v1: https://lore.kernel.org/all/20251129063726.31210-1-ankitkhushwaha.linux@gmail.com/
---
tools/testing/selftests/net/tls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/net/tls.c b/tools/testing/selftests/net/tls.c
index a3ef4b57eb5f..a4d16a460fbe 100644
--- a/tools/testing/selftests/net/tls.c
+++ b/tools/testing/selftests/net/tls.c
@@ -2786,10 +2786,10 @@ TEST_F(tls_err, epoll_partial_rec)
TEST_F(tls_err, poll_partial_rec_async)
{
struct pollfd pfd = { };
+ char token = '\0';
ssize_t rec_len;
char rec[256];
char buf[128];
- char token;
int p[2];
int ret;
--
2.52.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v2] selftests: tls: fix warning of uninitialized variable
2025-12-05 16:32 [PATCH net-next v2] selftests: tls: fix warning of uninitialized variable Ankit Khushwaha
@ 2025-12-06 10:27 ` Simon Horman
2025-12-10 9:06 ` Jakub Kicinski
2025-12-10 9:20 ` patchwork-bot+netdevbpf
1 sibling, 1 reply; 5+ messages in thread
From: Simon Horman @ 2025-12-06 10:27 UTC (permalink / raw)
To: Ankit Khushwaha
Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Sabrina Dubroca, Shuah Khan, netdev, linux-kselftest,
linux-kernel
On Fri, Dec 05, 2025 at 10:02:42PM +0530, Ankit Khushwaha wrote:
> In 'poll_partial_rec_async' a uninitialized char variable 'token' with
> is used for write/read instruction to synchronize between threads
> via a pipe.
>
> tls.c:2833:26: warning: variable 'token' is uninitialized
> when passed as a const pointer argument
>
> Initialize 'token' to '\0' to silence compiler warning.
>
> Signed-off-by: Ankit Khushwaha <ankitkhushwaha.linux@gmail.com>
> ---
> compiler used: clang version 21.1.5 (Fedora 21.1.5-1.fc43).
>
> changelog:
> v2:
> - update patch name and msg
>
> v1: https://lore.kernel.org/all/20251129063726.31210-1-ankitkhushwaha.linux@gmail.com/
Hi Ankit,
Thanks for the update. Overall this seems good to me, however,
net-next is currently closed.
## Form letter - net-next-closed
The merge window for v6.19 has begun and therefore net-next has closed
for new drivers, features, code refactoring and optimizations. We are
currently accepting bug fixes only.
Please repost when net-next reopens.
Due to a combination of the merge-window, travel commitments of the
maintainers, and the holiday season, net-next will re-open after
2nd January.
RFC patches sent for review only are welcome at any time.
See: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycle
--
pw-bot: defer
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v2] selftests: tls: fix warning of uninitialized variable
2025-12-06 10:27 ` Simon Horman
@ 2025-12-10 9:06 ` Jakub Kicinski
2025-12-10 9:23 ` Simon Horman
0 siblings, 1 reply; 5+ messages in thread
From: Jakub Kicinski @ 2025-12-10 9:06 UTC (permalink / raw)
To: Simon Horman
Cc: Ankit Khushwaha, David S. Miller, Eric Dumazet, Paolo Abeni,
Sabrina Dubroca, Shuah Khan, netdev, linux-kselftest,
linux-kernel
On Sat, 6 Dec 2025 10:27:01 +0000 Simon Horman wrote:
> Thanks for the update. Overall this seems good to me, however,
> net-next is currently closed.
FWIW after Simon made this comment more fixes for various ksft warnings
got posted, I think we should apply them now and to be consistent I'll
also take this one.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v2] selftests: tls: fix warning of uninitialized variable
2025-12-05 16:32 [PATCH net-next v2] selftests: tls: fix warning of uninitialized variable Ankit Khushwaha
2025-12-06 10:27 ` Simon Horman
@ 2025-12-10 9:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 5+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-12-10 9:20 UTC (permalink / raw)
To: Ankit Khushwaha
Cc: davem, edumazet, kuba, pabeni, horms, sd, shuah, netdev,
linux-kselftest, linux-kernel
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 5 Dec 2025 22:02:42 +0530 you wrote:
> In 'poll_partial_rec_async' a uninitialized char variable 'token' with
> is used for write/read instruction to synchronize between threads
> via a pipe.
>
> tls.c:2833:26: warning: variable 'token' is uninitialized
> when passed as a const pointer argument
>
> [...]
Here is the summary with links:
- [net-next,v2] selftests: tls: fix warning of uninitialized variable
https://git.kernel.org/netdev/net/c/9580f6d47dd6
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v2] selftests: tls: fix warning of uninitialized variable
2025-12-10 9:06 ` Jakub Kicinski
@ 2025-12-10 9:23 ` Simon Horman
0 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2025-12-10 9:23 UTC (permalink / raw)
To: Jakub Kicinski
Cc: Ankit Khushwaha, David S. Miller, Eric Dumazet, Paolo Abeni,
Sabrina Dubroca, Shuah Khan, netdev, linux-kselftest,
linux-kernel
On Wed, Dec 10, 2025 at 06:06:40PM +0900, Jakub Kicinski wrote:
> On Sat, 6 Dec 2025 10:27:01 +0000 Simon Horman wrote:
> > Thanks for the update. Overall this seems good to me, however,
> > net-next is currently closed.
>
> FWIW after Simon made this comment more fixes for various ksft warnings
> got posted, I think we should apply them now and to be consistent I'll
> also take this one.
Understood. I'm always a little unsure where selftest changes should best land.
In any case, feel free to add my tag as this does look good to me.
Reviewed-by: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-12-10 9:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-05 16:32 [PATCH net-next v2] selftests: tls: fix warning of uninitialized variable Ankit Khushwaha
2025-12-06 10:27 ` Simon Horman
2025-12-10 9:06 ` Jakub Kicinski
2025-12-10 9:23 ` Simon Horman
2025-12-10 9:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).