diff mbox series

[net-next] net: ethernet: ti: Remove unused declarations

Message ID 20230821134029.40084-1-yuehaibing@huawei.com (mailing list archive)
State Accepted
Commit a491add19faf335faa75d6baa69adb0a9a588df2
Delegated to: Netdev Maintainers
Headers show
Series [net-next] net: ethernet: ti: Remove unused declarations | 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/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: 9 this patch: 9
netdev/cc_maintainers warning 2 maintainers not CCed: edumazet@google.com s-vadapalli@ti.com
netdev/build_clang success Errors and warnings before: 9 this patch: 9
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 No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 9 this patch: 9
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 15 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Yue Haibing Aug. 21, 2023, 1:40 p.m. UTC
Commit e8609e69470f ("net: ethernet: ti: am65-cpsw: Convert to PHYLINK")
removed am65_cpsw_nuss_adjust_link() but not its declaration.
Commit 84640e27f230 ("net: netcp: Add Keystone NetCP core ethernet driver")
declared but never implemented netcp_device_find_module().

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
---
 drivers/net/ethernet/ti/am65-cpsw-nuss.h | 1 -
 drivers/net/ethernet/ti/netcp.h          | 2 --
 2 files changed, 3 deletions(-)

Comments

Simon Horman Aug. 21, 2023, 8:01 p.m. UTC | #1
On Mon, Aug 21, 2023 at 09:40:29PM +0800, Yue Haibing wrote:
> Commit e8609e69470f ("net: ethernet: ti: am65-cpsw: Convert to PHYLINK")
> removed am65_cpsw_nuss_adjust_link() but not its declaration.
> Commit 84640e27f230 ("net: netcp: Add Keystone NetCP core ethernet driver")
> declared but never implemented netcp_device_find_module().
> 
> Signed-off-by: Yue Haibing <yuehaibing@huawei.com>

Reviewed-by: Simon Horman <horms@kernel.org>
Roger Quadros Aug. 22, 2023, 7:31 a.m. UTC | #2
On 21/08/2023 16:40, Yue Haibing wrote:
> Commit e8609e69470f ("net: ethernet: ti: am65-cpsw: Convert to PHYLINK")
> removed am65_cpsw_nuss_adjust_link() but not its declaration.
> Commit 84640e27f230 ("net: netcp: Add Keystone NetCP core ethernet driver")
> declared but never implemented netcp_device_find_module().
> 
> Signed-off-by: Yue Haibing <yuehaibing@huawei.com>

Acked-by: Roger Quadros <rogerq@kernel.org>
patchwork-bot+netdevbpf@kernel.org Aug. 22, 2023, 6 p.m. UTC | #3
Hello:

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

On Mon, 21 Aug 2023 21:40:29 +0800 you wrote:
> Commit e8609e69470f ("net: ethernet: ti: am65-cpsw: Convert to PHYLINK")
> removed am65_cpsw_nuss_adjust_link() but not its declaration.
> Commit 84640e27f230 ("net: netcp: Add Keystone NetCP core ethernet driver")
> declared but never implemented netcp_device_find_module().
> 
> Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
> 
> [...]

Here is the summary with links:
  - [net-next] net: ethernet: ti: Remove unused declarations
    https://git.kernel.org/netdev/net-next/c/a491add19faf

You are awesome, thank you!
diff mbox series

Patch

diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.h b/drivers/net/ethernet/ti/am65-cpsw-nuss.h
index bf40c88fbd9b..f3dad2ab9828 100644
--- a/drivers/net/ethernet/ti/am65-cpsw-nuss.h
+++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.h
@@ -192,7 +192,6 @@  struct am65_cpsw_ndev_priv {
 
 extern const struct ethtool_ops am65_cpsw_ethtool_ops_slave;
 
-void am65_cpsw_nuss_adjust_link(struct net_device *ndev);
 void am65_cpsw_nuss_set_p0_ptype(struct am65_cpsw_common *common);
 void am65_cpsw_nuss_remove_tx_chns(struct am65_cpsw_common *common);
 int am65_cpsw_nuss_update_tx_chns(struct am65_cpsw_common *common, int num_tx);
diff --git a/drivers/net/ethernet/ti/netcp.h b/drivers/net/ethernet/ti/netcp.h
index 43d5cd59b56b..7007eb8bed36 100644
--- a/drivers/net/ethernet/ti/netcp.h
+++ b/drivers/net/ethernet/ti/netcp.h
@@ -233,8 +233,6 @@  int netcp_register_rxhook(struct netcp_intf *netcp_priv, int order,
 			  netcp_hook_rtn *hook_rtn, void *hook_data);
 int netcp_unregister_rxhook(struct netcp_intf *netcp_priv, int order,
 			    netcp_hook_rtn *hook_rtn, void *hook_data);
-void *netcp_device_find_module(struct netcp_device *netcp_device,
-			       const char *name);
 
 /* SGMII functions */
 int netcp_sgmii_reset(void __iomem *sgmii_ofs, int port);