* [PATCH] ethtool: remove unused __ETHTOOL_LINK_MODE_MASK_NWORDS
@ 2026-08-18 2:37 Zhan Xusheng
2026-08-20 20:30 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Zhan Xusheng @ 2026-08-18 2:37 UTC (permalink / raw)
To: Andrew Lunn, Jakub Kicinski
Cc: David S . Miller, Eric Dumazet, Paolo Abeni, Michal Kubecek,
zhanxusheng, netdev, linux-kernel, Zhan Xusheng
From: Zhan Xusheng <zhanxusheng1024@gmail.com>
From: Zhan Xusheng <zhanxusheng@xiaomi.com>
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.
Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>
---
include/linux/ethtool_netlink.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/include/linux/ethtool_netlink.h b/include/linux/ethtool_netlink.h
index 39254b2726c0..15881f34ef66 100644
--- a/include/linux/ethtool_netlink.h
+++ b/include/linux/ethtool_netlink.h
@@ -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)
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ethtool: remove unused __ETHTOOL_LINK_MODE_MASK_NWORDS
2026-08-18 2:37 [PATCH] ethtool: remove unused __ETHTOOL_LINK_MODE_MASK_NWORDS Zhan Xusheng
@ 2026-08-20 20:30 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-08-20 20:30 UTC (permalink / raw)
To: Zhan Xusheng
Cc: andrew, kuba, davem, edumazet, pabeni, mkubecek, zhanxusheng,
netdev, linux-kernel
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Tue, 18 Aug 2026 10:37:04 +0800 you wrote:
> From: Zhan Xusheng <zhanxusheng1024@gmail.com>
>
> From: Zhan Xusheng <zhanxusheng@xiaomi.com>
>
> 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.
>
> [...]
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-20 20:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-18 2:37 [PATCH] ethtool: remove unused __ETHTOOL_LINK_MODE_MASK_NWORDS Zhan Xusheng
2026-08-20 20:30 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®