Thread (2 messages) 2 messages, 2 authors, 2025-07-15

Re: [PATCH net-next v3] net: thunderx: Fix format-truncation warning in bgx_acpi_match_id()

From: patchwork-bot+netdevbpf@kernel.org
Date: 2025-07-15 00:30:07
Also in: lkml, netdev

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski [off-list ref]:

On Fri, 11 Jul 2025 07:05:30 -0700 you wrote:
The buffer bgx_sel used in snprintf() was too small to safely hold
the formatted string "BGX%d" for all valid bgx_id values. This caused
a -Wformat-truncation warning with `Werror` enabled during build.

Increase the buffer size from 5 to 7 and use `sizeof(bgx_sel)` in
snprintf() to ensure safety and suppress the warning.

[...]
Here is the summary with links:
  - [net-next,v3] net: thunderx: Fix format-truncation warning in bgx_acpi_match_id()
    https://git.kernel.org/netdev/net-next/c/53d20606c406

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