Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: dsa: use kernel data types for ethtool ops on conduit

Suppress some checkpatch 'CHECK' messages about u8 being preferable over
uint8_t, etc. No functional change.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20251122112311.138784-3-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Vladimir Oltean and committed by
Jakub Kicinski
8afabd27 eba81b0a

+5 -6
+5 -6
net/dsa/conduit.c
··· 89 89 90 90 static void dsa_conduit_get_ethtool_stats(struct net_device *dev, 91 91 struct ethtool_stats *stats, 92 - uint64_t *data) 92 + u64 *data) 93 93 { 94 94 struct dsa_port *cpu_dp = dev->dsa_ptr; 95 95 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; ··· 110 110 111 111 static void dsa_conduit_get_ethtool_phy_stats(struct net_device *dev, 112 112 struct ethtool_stats *stats, 113 - uint64_t *data) 113 + u64 *data) 114 114 { 115 115 struct dsa_port *cpu_dp = dev->dsa_ptr; 116 116 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; ··· 160 160 return count; 161 161 } 162 162 163 - static void dsa_conduit_get_strings(struct net_device *dev, uint32_t stringset, 164 - uint8_t *data) 163 + static void dsa_conduit_get_strings(struct net_device *dev, u32 stringset, 164 + u8 *data) 165 165 { 166 166 struct dsa_port *cpu_dp = dev->dsa_ptr; 167 167 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; ··· 169 169 int port = cpu_dp->index; 170 170 int len = ETH_GSTRING_LEN; 171 171 int mcount = 0, count, i; 172 - uint8_t pfx[4]; 173 - uint8_t *ndata; 172 + u8 pfx[4], *ndata; 174 173 175 174 snprintf(pfx, sizeof(pfx), "p%.2d", port); 176 175 /* We do not want to be NULL-terminated, since this is a prefix */