diff mbox series

[1/2] include: mdio: Remove mdio45_ethtool_gset()

Message ID 20241112105430.438491-1-alistair@alistair23.me (mailing list archive)
State Accepted
Commit e7cb7cf43afb96a4fd8f68c2dfb9b2fbdd444654
Headers show
Series [1/2] include: mdio: Remove mdio45_ethtool_gset() | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Guessed tree name to be 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: 5 this patch: 5
netdev/build_tools success Errors and warnings before: 0 (+0) this patch: 0 (+0)
netdev/cc_maintainers success CCed 4 of 4 maintainers
netdev/build_clang success Errors and warnings before: 17 this patch: 17
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: 531 this patch: 531
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 22 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 41 this patch: 41
netdev/source_inline success Was 0 now: 0
netdev/contest success net-next-2024-11-14--18-00 (tests: 788)

Commit Message

Alistair Francis Nov. 12, 2024, 10:54 a.m. UTC
From: Alistair Francis <alistair.francis@wdc.com>

mdio45_ethtool_gset() is never called, so let's remove it.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
 include/linux/mdio.h | 16 ----------------
 1 file changed, 16 deletions(-)

Comments

Andrew Lunn Nov. 12, 2024, 1:17 p.m. UTC | #1
On Tue, Nov 12, 2024 at 08:54:29PM +1000, Alistair Francis wrote:
> From: Alistair Francis <alistair.francis@wdc.com>
> 
> mdio45_ethtool_gset() is never called, so let's remove it.
> 
> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

With a pathchset, it would be normal to include a cover node, patch
0/X, which explains the big picture. There you could mention that you
are primarily doing this for Rust since it gives linker errors.

The patches themselves look O.K. Lets leave them for a couple of days
so 0-day can build test them and see if there are some users hiding
away which we both missed.

	Andrew
patchwork-bot+netdevbpf@kernel.org Nov. 15, 2024, 3:30 a.m. UTC | #2
Hello:

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

On Tue, 12 Nov 2024 20:54:29 +1000 you wrote:
> From: Alistair Francis <alistair.francis@wdc.com>
> 
> mdio45_ethtool_gset() is never called, so let's remove it.
> 
> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
> ---
>  include/linux/mdio.h | 16 ----------------
>  1 file changed, 16 deletions(-)

Here is the summary with links:
  - [1/2] include: mdio: Remove mdio45_ethtool_gset()
    https://git.kernel.org/netdev/net-next/c/e7cb7cf43afb
  - [2/2] mdio: Remove mdio45_ethtool_gset_npage()
    https://git.kernel.org/netdev/net-next/c/575092a7f0ce

You are awesome, thank you!
diff mbox series

Patch

diff --git a/include/linux/mdio.h b/include/linux/mdio.h
index efeca5bd7600..c63f43645d50 100644
--- a/include/linux/mdio.h
+++ b/include/linux/mdio.h
@@ -173,22 +173,6 @@  mdio45_ethtool_ksettings_get_npage(const struct mdio_if_info *mdio,
 				   struct ethtool_link_ksettings *cmd,
 				   u32 npage_adv, u32 npage_lpa);
 
-/**
- * mdio45_ethtool_gset - get settings for ETHTOOL_GSET
- * @mdio: MDIO interface
- * @ecmd: Ethtool request structure
- *
- * Since the CSRs for auto-negotiation using next pages are not fully
- * standardised, this function does not attempt to decode them.  Use
- * mdio45_ethtool_gset_npage() to specify advertisement bits from next
- * pages.
- */
-static inline void mdio45_ethtool_gset(const struct mdio_if_info *mdio,
-				       struct ethtool_cmd *ecmd)
-{
-	mdio45_ethtool_gset_npage(mdio, ecmd, 0, 0);
-}
-
 /**
  * mdio45_ethtool_ksettings_get - get settings for ETHTOOL_GLINKSETTINGS
  * @mdio: MDIO interface