[PATCH net-next 1/2] net: dsa: user: use kernel types in ethtool callbacks

From: Kai Kuang

Date: Wed Oct 28 2026 - 09:02:30 EST


Use u32/u8/u64 in the ->get_strings() and ->get_ethtool_stats()
callbacks to match the ethtool_ops method prototypes.

No functional change.

Signed-off-by: Kai Kuang <kuangkai@xxxxxxxxxx>
---
net/dsa/user.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/dsa/user.c b/net/dsa/user.c
index 041f9060c8ef..cfad269be75c 100644
--- a/net/dsa/user.c
+++ b/net/dsa/user.c
@@ -1023,7 +1023,7 @@ static int dsa_user_set_eeprom(struct net_device *dev,
}

static void dsa_user_get_strings(struct net_device *dev,
- uint32_t stringset, uint8_t *data)
+ u32 stringset, u8 *data)
{
struct dsa_port *dp = dsa_user_to_port(dev);
struct dsa_switch *ds = dp->ds;
@@ -1043,7 +1043,7 @@ static void dsa_user_get_strings(struct net_device *dev,

static void dsa_user_get_ethtool_stats(struct net_device *dev,
struct ethtool_stats *stats,
- uint64_t *data)
+ u64 *data)
{
struct dsa_port *dp = dsa_user_to_port(dev);
struct dsa_switch *ds = dp->ds;
--
2.25.1


No virus found
Checked by Hillstone Network AntiVirus