Messages in this thread |  | | Subject | Re: [PATCH] net: dsa: dsa_loop: use int type to store negative error codes | | From | patchwork-bot+netdevbpf@kernel ... | | Date | Thu, 04 Sep 2025 16:00:07 +0000 |
| |
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>:
On Wed, 3 Sep 2025 20:34:03 +0800 you wrote: > Change the 'ret' variable in dsa_loop_init() from unsigned int to int, as > it needs to store either negative error codes or zero returned by > mdio_driver_register(). > > Storing the negative error codes in unsigned type, doesn't cause an issue > at runtime but can be confusing. Additionally, assigning negative error > codes to unsigned type may trigger a GCC warning when the -Wsign-conversion > flag is enabled. > > [...]
Here is the summary with links: - net: dsa: dsa_loop: use int type to store negative error codes https://git.kernel.org/netdev/net-next/c/a50e7864ca44
You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
|  |