diff mbox series

[net-next] ethtool: remove ethtool_eee_use_linkmodes

Message ID b4ff9b51-092b-4d44-bfce-c95342a05b51@gmail.com (mailing list archive)
State Accepted
Commit d7933a2c7f87667a87a2c0d0c5a1617c414c6024
Delegated to: Netdev Maintainers
Headers show
Series [net-next] ethtool: remove ethtool_eee_use_linkmodes | 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: 942 this patch: 942
netdev/build_tools success No tools touched, skip
netdev/cc_maintainers warning 1 maintainers not CCed: kory.maincent@bootlin.com
netdev/build_clang success Errors and warnings before: 957 this patch: 957
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: 958 this patch: 958
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 9 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/contest success net-next-2024-03-06--21-00 (tests: 892)

Commit Message

Heiner Kallweit March 5, 2024, 9:26 p.m. UTC
After 292fac464b01 ("net: ethtool: eee: Remove legacy _u32 from keee")
this function has no user any longer.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 net/ethtool/common.c | 5 -----
 net/ethtool/common.h | 1 -
 2 files changed, 6 deletions(-)

Comments

Andrew Lunn March 5, 2024, 9:43 p.m. UTC | #1
On Tue, Mar 05, 2024 at 10:26:10PM +0100, Heiner Kallweit wrote:
> After 292fac464b01 ("net: ethtool: eee: Remove legacy _u32 from keee")
> this function has no user any longer.
> 
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
patchwork-bot+netdevbpf@kernel.org March 7, 2024, 4:50 a.m. UTC | #2
Hello:

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

On Tue, 5 Mar 2024 22:26:10 +0100 you wrote:
> After 292fac464b01 ("net: ethtool: eee: Remove legacy _u32 from keee")
> this function has no user any longer.
> 
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
>  net/ethtool/common.c | 5 -----
>  net/ethtool/common.h | 1 -
>  2 files changed, 6 deletions(-)

Here is the summary with links:
  - [net-next] ethtool: remove ethtool_eee_use_linkmodes
    https://git.kernel.org/netdev/net-next/c/d7933a2c7f87

You are awesome, thank you!
diff mbox series

Patch

diff --git a/net/ethtool/common.c b/net/ethtool/common.c
index ce486cec3..6b2a360dc 100644
--- a/net/ethtool/common.c
+++ b/net/ethtool/common.c
@@ -712,8 +712,3 @@  ethtool_forced_speed_maps_init(struct ethtool_forced_speed_map *maps, u32 size)
 	}
 }
 EXPORT_SYMBOL_GPL(ethtool_forced_speed_maps_init);
-
-bool ethtool_eee_use_linkmodes(const struct ethtool_keee *eee)
-{
-	return !linkmode_empty(eee->supported);
-}
diff --git a/net/ethtool/common.h b/net/ethtool/common.h
index 0f2b5f7ea..28b8aaaf9 100644
--- a/net/ethtool/common.h
+++ b/net/ethtool/common.h
@@ -55,6 +55,5 @@  int ethtool_get_module_eeprom_call(struct net_device *dev,
 				   struct ethtool_eeprom *ee, u8 *data);
 
 bool __ethtool_dev_mm_supported(struct net_device *dev);
-bool ethtool_eee_use_linkmodes(const struct ethtool_keee *eee);
 
 #endif /* _ETHTOOL_COMMON_H */