Re: [PATCH net-next v4 2/2] net: dsa: yt921x: Use u64_stats_t for MIB stats
From: kernel test robot
Date: Sat Mar 07 2026 - 17:55:40 EST
Hi David,
kernel test robot noticed the following build errors:
[auto build test ERROR on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/David-Yang/net-dsa-yt921x-Return-early-for-failed-MIB-read/20260307-004743
base: net-next/main
patch link: https://lore.kernel.org/r/20260306154637.3126497-3-mmyangfl%40gmail.com
patch subject: [PATCH net-next v4 2/2] net: dsa: yt921x: Use u64_stats_t for MIB stats
config: i386-buildonly-randconfig-003-20260307 (https://download.01.org/0day-ci/archive/20260308/202603080637.k8pQfAUS-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.4.0-5) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260308/202603080637.k8pQfAUS-lkp@xxxxxxxxx/reproduce)
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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603080637.k8pQfAUS-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
In file included from drivers/net/dsa/yt921x.c:29:
>> drivers/net/dsa/yt921x.h:588:29: error: flexible array member in union
588 | u64_stats_t stats[];
| ^~~~~
vim +588 drivers/net/dsa/yt921x.h
533
534 struct yt921x_mib {
535 union {
536 struct {
537 u64_stats_t rx_broadcast;
538 u64_stats_t rx_pause;
539 u64_stats_t rx_multicast;
540 u64_stats_t rx_crc_errors;
541
542 u64_stats_t rx_alignment_errors;
543 u64_stats_t rx_undersize_errors;
544 u64_stats_t rx_fragment_errors;
545 u64_stats_t rx_64byte;
546
547 u64_stats_t rx_65_127byte;
548 u64_stats_t rx_128_255byte;
549 u64_stats_t rx_256_511byte;
550 u64_stats_t rx_512_1023byte;
551
552 u64_stats_t rx_1024_1518byte;
553 u64_stats_t rx_jumbo;
554 u64_stats_t rx_good_bytes;
555
556 u64_stats_t rx_bad_bytes;
557 u64_stats_t rx_oversize_errors;
558
559 u64_stats_t rx_dropped;
560 u64_stats_t tx_broadcast;
561 u64_stats_t tx_pause;
562 u64_stats_t tx_multicast;
563
564 u64_stats_t tx_undersize_errors;
565 u64_stats_t tx_64byte;
566 u64_stats_t tx_65_127byte;
567 u64_stats_t tx_128_255byte;
568
569 u64_stats_t tx_256_511byte;
570 u64_stats_t tx_512_1023byte;
571 u64_stats_t tx_1024_1518byte;
572 u64_stats_t tx_jumbo;
573
574 u64_stats_t tx_good_bytes;
575 u64_stats_t tx_collisions;
576
577 u64_stats_t tx_aborted_errors;
578 u64_stats_t tx_multiple_collisions;
579 u64_stats_t tx_single_collisions;
580 u64_stats_t tx_good;
581
582 u64_stats_t tx_deferred;
583 u64_stats_t tx_late_collisions;
584 u64_stats_t rx_oam;
585 u64_stats_t tx_oam;
586 };
587
> 588 u64_stats_t stats[];
589 };
590 };
591
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki