Re: [PATCH] net: macb: use ethtool_sprintf to fill ethtool stats strings

From: patchwork-bot+netdevbpf

Date: Tue Mar 03 2026 - 20:35:39 EST


Hello:

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

On Mon, 2 Mar 2026 22:29:31 +0800 you wrote:
> The RISC-V toolchain triggers a stringop-truncation warning when using
> snprintf() with a fixed ETH_GSTRING_LEN (32 bytes) buffer.
>
> Convert the driver to use the modern ethtool_sprintf() API from
> linux/ethtool.h. This removes the need for manual snprintf() and
> memcpy() calls, handles the 32-byte padding automatically, and
> simplifies the logic by removing manual pointer arithmetic.
>
> [...]

Here is the summary with links:
- net: macb: use ethtool_sprintf to fill ethtool stats strings
https://git.kernel.org/netdev/net-next/c/acd338ba2f3a

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html