diff mbox series

[net-next] net: phylink: Remove unused function pointer from phylink structure

Message ID 174240634772.1745174.5690351737682751849.stgit@ahduyck-xeon-server.home.arpa (mailing list archive)
State New
Delegated to: Netdev Maintainers
Headers show
Series [net-next] net: phylink: Remove unused function pointer from phylink structure | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net-next
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/build_tools success No tools touched, skip
netdev/cc_maintainers fail 1 blamed authors not CCed: f.fainelli@gmail.com; 2 maintainers not CCed: edumazet@google.com f.fainelli@gmail.com
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 17 this patch: 17
netdev/source_inline success Was 0 now: 0
netdev/contest fail net-next-2025-03-20--03-00 (tests: 896)

Commit Message

Alexander Duyck March 19, 2025, 5:46 p.m. UTC
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(-)

Comments

Jacob Keller March 19, 2025, 7:08 p.m. UTC | #1
> -----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;
> 
>
Russell King (Oracle) March 19, 2025, 7:34 p.m. UTC | #2
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!
diff mbox series

Patch

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;