Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Eric Dumazet
Wed, 21 Oct 2026 16:12
Re: [PATCH net] selftests/net: tcp_mmap: remove unused -k option and keepflag
Author: Eric Dumazet
Date: Wed, 21 Oct 2026 16:12
Date: Wed, 21 Oct 2026 16:12
23 lines
9639 bytes
9639 bytes
Le mer. 21 oct. 2026 ร 17:27, Greg Thelen <gthelen@google.com> a รฉcrit :
>
> Commit aacb0c2e524c ("selftests: net: tcp_mmap must use
> TCP_ZEROCOPY_RECEIVE") removed the only read of keepflag in child_thread(),
> leaving the file-scope keepflag variable set by the -k option in main() but
> never read. This triggers a Clang 23 warning:
>
> tcp_mmap.c:91:12: error: variable 'keepflag' set but not used
> [-Werror,-Wunused-but-set-global]
>
> Remove the unused keepflag variable and the dead -k getopt option.
>
> Fixes: aacb0c2e524c ("selftests: net: tcp_mmap must use TCP_ZEROCOPY_RECEIVE")
> Signed-off-by: Greg Thelen <gthelen@google.com>
Reviewed-by: Eric Dumazet <edumazet@kernel.org>
Thanks!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads