[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<174839525499.1849945.743853526912527332.git-patchwork-notify@kernel.org>
Date: Wed, 28 May 2025 01:20:54 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org, alobakin@...me,
andrew@...n.ch, hkallweit1@...il.com, linux@...linux.org.uk
Subject: Re: [PATCH net-next] net: phy: fix up const issues in to_mdio_device()
and to_phy_device()
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@...nel.org>:
On Thu, 22 May 2025 13:21:47 +0200 you wrote:
> Both to_mdio_device() and to_phy_device() "throw away" the const pointer
> attribute passed to them and return a non-const pointer, which generally
> is not a good thing overall. Fix this up by using container_of_const()
> which was designed for this very problem.
>
> Cc: Alexander Lobakin <alobakin@...me>
> Cc: Andrew Lunn <andrew@...n.ch>
> Cc: Heiner Kallweit <hkallweit1@...il.com>
> Cc: Russell King <linux@...linux.org.uk>
> Fixes: 7eab14de73a8 ("mdio, phy: fix -Wshadow warnings triggered by nested container_of()")
> Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
>
> [...]
Here is the summary with links:
- [net-next] net: phy: fix up const issues in to_mdio_device() and to_phy_device()
https://git.kernel.org/netdev/net-next/c/e9cb929670a1
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