From: patchwork-bot+netdevbpf@kernel.org
To: longlong yan <yanlonglong@kylinos.cn>
Cc: pabeni@redhat.com, kuba@kernel.org, davem@davemloft.net,
edumazet@google.com, netdev@vger.kernel.org,
linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org,
shuah@kernel.org, horms@kernel.org
Subject: Re: [PATCH] selftests/net: use MAP_FAILED instead of (void *)-1 in tcp_mmap
Date: Thu, 23 Jul 2026 17:20:14 +0000 [thread overview]
Message-ID: <178482721438.2793774.4437488998213169704.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20260722015129.916-1-yanlonglong@kylinos.cn>
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 22 Jul 2026 09:51:29 +0800 you wrote:
> mmap() is documented to return MAP_FAILED on error, but tcp_mmap.c
> compares the return value against (void *)-1 and (unsigned char *)-1.
>
> Replace these with the standard MAP_FAILED macro for better readability
> and type safety.
>
> Signed-off-by: longlong yan <yanlonglong@kylinos.cn>
>
> [...]
Here is the summary with links:
- selftests/net: use MAP_FAILED instead of (void *)-1 in tcp_mmap
https://git.kernel.org/netdev/net-next/c/94cdc6a2c837
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2026-07-23 17:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 1:51 [PATCH] selftests/net: use MAP_FAILED instead of (void *)-1 in tcp_mmap longlong yan
2026-07-22 13:15 ` Joe Damato
2026-07-22 13:46 ` Eric Dumazet
2026-07-23 17:20 ` patchwork-bot+netdevbpf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178482721438.2793774.4437488998213169704.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
--cc=yanlonglong@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox