netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next PATCH] net: phylink: Remove unused function pointer from phylink structure
@ 2025-03-19 17:46 Alexander Duyck
  2025-03-19 19:08 ` Keller, Jacob E
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexander Duyck @ 2025-03-19 17:46 UTC (permalink / raw)
  To: netdev; +Cc: linux, andrew, hkallweit1, davem, kuba, pabeni

From: Alexander Duyck <alexanderduyck@fb.com>

From what I can tell the get_fixed_state pointer in the phylink structure
hasn't been used since commit <5c05c1dbb177> ("net: phylink, dsa: eliminate
phylink_fixed_state_cb()") . Since I can't find any users for it we might
as well just drop the pointer.

Fixes: 5c05c1dbb177 ("net: phylink, dsa: eliminate phylink_fixed_state_cb()")
Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>
---
 drivers/net/phy/phylink.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index 0f70a7f3dfcc..16a1f31f0091 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -72,8 +72,6 @@ struct phylink {
 	struct gpio_desc *link_gpio;
 	unsigned int link_irq;
 	struct timer_list link_poll;
-	void (*get_fixed_state)(struct net_device *dev,
-				struct phylink_link_state *s);
 
 	struct mutex state_mutex;
 	struct phylink_link_state phy_state;



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* RE: [net-next PATCH] net: phylink: Remove unused function pointer from phylink structure
  2025-03-19 17:46 [net-next PATCH] net: phylink: Remove unused function pointer from phylink structure Alexander Duyck
@ 2025-03-19 19:08 ` Keller, Jacob E
  2025-03-19 19:34 ` Russell King (Oracle)
  2025-03-24 20:50 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: Keller, Jacob E @ 2025-03-19 19:08 UTC (permalink / raw)
  To: Alexander Duyck, netdev@vger.kernel.org
  Cc: linux@armlinux.org.uk, andrew@lunn.ch, hkallweit1@gmail.com,
	davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com



> -----Original Message-----
> From: Alexander Duyck <alexander.duyck@gmail.com>
> Sent: Wednesday, March 19, 2025 10:46 AM
> To: netdev@vger.kernel.org
> Cc: linux@armlinux.org.uk; andrew@lunn.ch; hkallweit1@gmail.com;
> davem@davemloft.net; kuba@kernel.org; pabeni@redhat.com
> Subject: [net-next PATCH] net: phylink: Remove unused function pointer from
> phylink structure
> 
> From: Alexander Duyck <alexanderduyck@fb.com>
> 
> From what I can tell the get_fixed_state pointer in the phylink structure
> hasn't been used since commit <5c05c1dbb177> ("net: phylink, dsa: eliminate
> phylink_fixed_state_cb()") . Since I can't find any users for it we might
> as well just drop the pointer.
> 
> Fixes: 5c05c1dbb177 ("net: phylink, dsa: eliminate phylink_fixed_state_cb()")
> Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>
> ---
>  drivers/net/phy/phylink.c |    2 --
>  1 file changed, 2 deletions(-)
> 

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>

> diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
> index 0f70a7f3dfcc..16a1f31f0091 100644
> --- a/drivers/net/phy/phylink.c
> +++ b/drivers/net/phy/phylink.c
> @@ -72,8 +72,6 @@ struct phylink {
>  	struct gpio_desc *link_gpio;
>  	unsigned int link_irq;
>  	struct timer_list link_poll;
> -	void (*get_fixed_state)(struct net_device *dev,
> -				struct phylink_link_state *s);
> 
>  	struct mutex state_mutex;
>  	struct phylink_link_state phy_state;
> 
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [net-next PATCH] net: phylink: Remove unused function pointer from phylink structure
  2025-03-19 17:46 [net-next PATCH] net: phylink: Remove unused function pointer from phylink structure Alexander Duyck
  2025-03-19 19:08 ` Keller, Jacob E
@ 2025-03-19 19:34 ` Russell King (Oracle)
  2025-03-24 20:50 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: Russell King (Oracle) @ 2025-03-19 19:34 UTC (permalink / raw)
  To: Alexander Duyck; +Cc: netdev, andrew, hkallweit1, davem, kuba, pabeni

On Wed, Mar 19, 2025 at 10:46:25AM -0700, Alexander Duyck wrote:
> From: Alexander Duyck <alexanderduyck@fb.com>
> 
> From what I can tell the get_fixed_state pointer in the phylink structure
> hasn't been used since commit <5c05c1dbb177> ("net: phylink, dsa: eliminate
> phylink_fixed_state_cb()") . Since I can't find any users for it we might
> as well just drop the pointer.
> 
> Fixes: 5c05c1dbb177 ("net: phylink, dsa: eliminate phylink_fixed_state_cb()")
> Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>

Thanks!

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [net-next PATCH] net: phylink: Remove unused function pointer from phylink structure
  2025-03-19 17:46 [net-next PATCH] net: phylink: Remove unused function pointer from phylink structure Alexander Duyck
  2025-03-19 19:08 ` Keller, Jacob E
  2025-03-19 19:34 ` Russell King (Oracle)
@ 2025-03-24 20:50 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-03-24 20:50 UTC (permalink / raw)
  To: Alexander Duyck; +Cc: netdev, linux, andrew, hkallweit1, davem, kuba, pabeni

Hello:

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

On Wed, 19 Mar 2025 10:46:25 -0700 you wrote:
> From: Alexander Duyck <alexanderduyck@fb.com>
> 
> From what I can tell the get_fixed_state pointer in the phylink structure
> hasn't been used since commit <5c05c1dbb177> ("net: phylink, dsa: eliminate
> phylink_fixed_state_cb()") . Since I can't find any users for it we might
> as well just drop the pointer.
> 
> [...]

Here is the summary with links:
  - [net-next] net: phylink: Remove unused function pointer from phylink structure
    https://git.kernel.org/netdev/net-next/c/c3ad9d9e7da8

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-03-24 20:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-19 17:46 [net-next PATCH] net: phylink: Remove unused function pointer from phylink structure Alexander Duyck
2025-03-19 19:08 ` Keller, Jacob E
2025-03-19 19:34 ` Russell King (Oracle)
2025-03-24 20:50 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).