ethtool: remove unused __ETHTOOL_LINK_MODE_MASK_NWORDS
Subsystems (3)
PATCH 1/1 ethtool: remove unused __ETHTOOL_LINK_MODE_MASK_NWORDS
From: Zhan Xusheng <[email protected]>
From: Zhan Xusheng <[email protected]>
Added by commit f625aa9be8c1 ("ethtool: provide link mode information with LINKMODES_GET request") and never used. The same count is computed as __ETHTOOL_LINK_MODE_MASK_NU32 in net/ethtool/ioctl.c.
--- include/linux/ethtool_netlink.h | 3 --- 1 file changed, 3 deletions(-)
include/linux/ethtool_netlink.h +0 -3
@@ -7,9 +7,6 @@#include <linux/ethtool.h> #include <linux/netdevice.h> -#define __ETHTOOL_LINK_MODE_MASK_NWORDS \ - DIV_ROUND_UP(__ETHTOOL_LINK_MODE_MASK_NBITS, 32) -#define ETHTOOL_PAUSE_STAT_CNT (__ETHTOOL_A_PAUSE_STAT_CNT - \ ETHTOOL_A_PAUSE_STAT_TX_FRAMES)
Signature · 1 line
2.43.0
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Tue, 18 Aug 2026 10:37:04 +0800 you wrote:
From: Zhan Xusheng <[email protected]>
From: Zhan Xusheng <[email protected]>
Added by commit
f625aa9be8c1("ethtool: provide link mode information withLINKMODES_GETrequest") and never used. The same count is computed as__ETHTOOL_LINK_MODE_MASK_NU32innet/ethtool/ioctl.c.[...]
Here is the summary with links:
- ethtool: remove unused __ETHTOOL_LINK_MODE_MASK_NWORDS
https://git.kernel.org/netdev/net/c/d302d7109fb9
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html