ethtool: remove unused __ETHTOOL_LINK_MODE_MASK_NWORDS

From: Zhan Xusheng <zhanxusheng@xiaomi.com>

Added by commit f625aa9be8 ("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>
Link: https://patch.msgid.link/20260818023704.125721-1-zhanxusheng@xiaomi.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Zhan Xusheng
2026-08-18 10:37:04 +08:00
committed by Jakub Kicinski
parent f12c2de4f5
commit d302d7109f

View File

@@ -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)