[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<177025982907.136386.5748786579112411957.git-patchwork-notify@kernel.org>
Date: Thu, 05 Feb 2026 02:50:29 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Arnd Bergmann <arnd@...nel.org>
Cc: bryan-bt.tan@...adcom.com, vishnu.dasa@...adcom.com, sgarzare@...hat.com,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
arnd@...db.de, bcm-kernel-feedback-list@...adcom.com, horms@...nel.org,
harshavardhana.sa@...adcom.com, bobbyeshleman@...a.com, mst@...hat.com,
linux-kernel@...r.kernel.org, virtualization@...ts.linux.dev,
netdev@...r.kernel.org
Subject: Re: [PATCH] vmw_vsock: bypass false-positive Wnonnull warning with
gcc-16
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@...nel.org>:
On Tue, 3 Feb 2026 17:34:00 +0100 you wrote:
> From: Arnd Bergmann <arnd@...db.de>
>
> The gcc-16.0.1 snapshot produces a false-positive warning that turns
> into a build failure with CONFIG_WERROR:
>
> In file included from arch/x86/include/asm/string.h:6,
> from net/vmw_vsock/vmci_transport.c:10:
> In function 'vmci_transport_packet_init',
> inlined from '__vmci_transport_send_control_pkt.constprop' at net/vmw_vsock/vmci_transport.c:198:2:
> arch/x86/include/asm/string_32.h:150:25: error: argument 2 null where non-null expected because argument 3 is nonzero [-Werror=nonnull]
> 150 | #define memcpy(t, f, n) __builtin_memcpy(t, f, n)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~
> net/vmw_vsock/vmci_transport.c:164:17: note: in expansion of macro 'memcpy'
> 164 | memcpy(&pkt->u.wait, wait, sizeof(pkt->u.wait));
> | ^~~~~~
> arch/x86/include/asm/string_32.h:150:25: note: in a call to built-in function '__builtin_memcpy'
> net/vmw_vsock/vmci_transport.c:164:17: note: in expansion of macro 'memcpy'
> 164 | memcpy(&pkt->u.wait, wait, sizeof(pkt->u.wait));
> | ^~~~~~
>
> [...]
Here is the summary with links:
- vmw_vsock: bypass false-positive Wnonnull warning with gcc-16
https://git.kernel.org/netdev/net-next/c/e25dbf561e03
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists