Skip to contentSkip to conversation

drivers/net/ethernet/realtek/r8169_main.c:2248 rtl8169_get_eth_mac_stats() warn: inconsistent indenting

PATCH kernel test robot 1 participant 1 message Oct 21, 2024

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   63b3ff03d91ae8f875fe8747c781a521f78cde17
commit: e3fc5139bd8ffaa1498adc21be4e8ecbc6aed508 [4407/6324] r8169: implement additional ethtool stats ops
config: x86_64-randconfig-r072-20241021 (https://download.01.org/0day-ci/archive/20241022/[email protected]/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

smatch warnings:
drivers/net/ethernet/realtek/r8169_main.c:2248 rtl8169_get_eth_mac_stats() warn: inconsistent indenting

vim +2248 drivers/net/ethernet/realtek/r8169_main.c

2202
2203 static void rtl8169_get_eth_mac_stats(struct net_device *dev,
2204 struct ethtool_eth_mac_stats *mac_stats)
2205 {
2206 struct rtl8169_private *tp = netdev_priv(dev);
2207
2208 rtl8169_update_counters(tp);
2209
2210 mac_stats->FramesTransmittedOK =
2211 le64_to_cpu(tp->counters->tx_packets);
2212 mac_stats->SingleCollisionFrames =
2213 le32_to_cpu(tp->counters->tx_one_collision);
2214 mac_stats->MultipleCollisionFrames =
2215 le32_to_cpu(tp->counters->tx_multi_collision);
2216 mac_stats->FramesReceivedOK =
2217 le64_to_cpu(tp->counters->rx_packets);
2218 mac_stats->AlignmentErrors =
2219 le16_to_cpu(tp->counters->align_errors);
2220 mac_stats->FramesLostDueToIntMACXmitError =
2221 le64_to_cpu(tp->counters->tx_errors);
2222 mac_stats->BroadcastFramesReceivedOK =
2223 le64_to_cpu(tp->counters->rx_broadcast);
2224 mac_stats->MulticastFramesReceivedOK =
2225 le32_to_cpu(tp->counters->rx_multicast);
2226
2227 if (!rtl_is_8125(tp))
2228 return;
2229
2230 mac_stats->AlignmentErrors =
2231 le32_to_cpu(tp->counters->align_errors32);
2232 mac_stats->OctetsTransmittedOK =
2233 le64_to_cpu(tp->counters->tx_octets);
2234 mac_stats->LateCollisions =
2235 le32_to_cpu(tp->counters->tx_late_collision);
2236 mac_stats->FramesAbortedDueToXSColls =
2237 le32_to_cpu(tp->counters->tx_aborted32);
2238 mac_stats->OctetsReceivedOK =
2239 le64_to_cpu(tp->counters->rx_octets);
2240 mac_stats->FramesLostDueToIntMACRcvError =
2241 le32_to_cpu(tp->counters->rx_mac_error);
2242 mac_stats->MulticastFramesXmittedOK =
2243 le64_to_cpu(tp->counters->tx_multicast64);
2244 mac_stats->BroadcastFramesXmittedOK =
2245 le64_to_cpu(tp->counters->tx_broadcast64);
2246 mac_stats->MulticastFramesReceivedOK =
2247 le64_to_cpu(tp->counters->rx_multicast64);

> 2248		 mac_stats->FrameTooLongErrors =

2249 le32_to_cpu(tp->counters->rx_frame_too_long);
2250 }
2251

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki