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

patchwork-bot+netdevbpf at kernel.org patchwork-bot+netdevbpf at kernel.org
Mon Jul 14 17:30:27 PDT 2025


Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba at kernel.org>:

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





More information about the linux-arm-kernel mailing list