Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* Re: net: ethtool: add BaseC2C medium & AUI C2C link modes
       [not found] <202609290735.6l9LLSfn-lkp@intel.com>
@ 2026-09-29  1:10 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-29  1:10 UTC (permalink / raw)
  Cc: llvm, oe-kbuild-all

Hi Siddaraju,

kernel test robot noticed the following build errors:

url:    https://github.com/intel-lab-lkp/linux/commits/Siddaraju-DH/net-ethtool-add-BaseC2C-medium-AUI-C2C-link-modes/20260928-040656
base:   
patch link:    https://lore.kernel.org/r/202609290735.6l9LLSfn-lkp%40intel.com
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260929/202609290735.6l9LLSfn-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260929/202609290735.6l9LLSfn-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/r/202609290735.6l9LLSfn-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/phy/phy-core.c:21:2: error: call to '__compiletime_assert_605' declared with 'error' attribute: Enum ethtool_link_mode_bit_indices and phylib are out of sync. If a speed or mode has been added please update phy_speed_to_str and the PHY settings array.
--
   21 |         BUILD_BUG_ON_MSG(__ETHTOOL_LINK_MODE_MASK_NBITS != 125,
   |         ^
   include/linux/build_bug.h:40:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
   40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
   |                                     ^
   include/linux/compiler_types.h:702:2: note: expanded from macro 'compiletime_assert'
   702 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
   |         ^
   include/linux/compiler_types.h:690:2: note: expanded from macro '_compiletime_assert'
   690 |         __compiletime_assert(condition, msg, prefix, suffix)
   |         ^
   include/linux/compiler_types.h:683:4: note: expanded from macro '__compiletime_assert'
   683 |                         prefix ## suffix();                             \
   |                         ^
   <scratch space>:141:1: note: expanded from here
   141 | __compiletime_assert_605
   | ^
>> drivers/net/phy/phy-core.c:21:2: error: call to '__compiletime_assert_605' declared with 'error' attribute: Enum ethtool_link_mode_bit_indices and phylib are out of sync. If a speed or mode has been added please update phy_speed_to_str and the PHY settings array.


vim +21 drivers/net/phy/phy-core.c

a3e51d4711793b Heiner Kallweit 2025-02-22  13  
4069a572d423b7 Andrew Lunn     2020-09-23  14  /**
4069a572d423b7 Andrew Lunn     2020-09-23  15   * phy_speed_to_str - Return a string representing the PHY link speed
4069a572d423b7 Andrew Lunn     2020-09-23  16   *
4069a572d423b7 Andrew Lunn     2020-09-23  17   * @speed: Speed of the link
4069a572d423b7 Andrew Lunn     2020-09-23  18   */
da4625ac2637e4 Russell King    2017-07-25  19  const char *phy_speed_to_str(int speed)
da4625ac2637e4 Russell King    2017-07-25  20  {
491c5dc98b848c Yael Chemla     2025-11-19 @21  	BUILD_BUG_ON_MSG(__ETHTOOL_LINK_MODE_MASK_NBITS != 125,
c6576bfe2f4baa Heiner Kallweit 2019-04-13  22  		"Enum ethtool_link_mode_bit_indices and phylib are out of sync. "
c6576bfe2f4baa Heiner Kallweit 2019-04-13  23  		"If a speed or mode has been added please update phy_speed_to_str "
c6576bfe2f4baa Heiner Kallweit 2019-04-13  24  		"and the PHY settings array.\n");
c6576bfe2f4baa Heiner Kallweit 2019-04-13  25  
da4625ac2637e4 Russell King    2017-07-25  26  	switch (speed) {
da4625ac2637e4 Russell King    2017-07-25  27  	case SPEED_10:
da4625ac2637e4 Russell King    2017-07-25  28  		return "10Mbps";
da4625ac2637e4 Russell King    2017-07-25  29  	case SPEED_100:
da4625ac2637e4 Russell King    2017-07-25  30  		return "100Mbps";
da4625ac2637e4 Russell King    2017-07-25  31  	case SPEED_1000:
da4625ac2637e4 Russell King    2017-07-25  32  		return "1Gbps";
da4625ac2637e4 Russell King    2017-07-25  33  	case SPEED_2500:
da4625ac2637e4 Russell King    2017-07-25  34  		return "2.5Gbps";
da4625ac2637e4 Russell King    2017-07-25  35  	case SPEED_5000:
da4625ac2637e4 Russell King    2017-07-25  36  		return "5Gbps";
da4625ac2637e4 Russell King    2017-07-25  37  	case SPEED_10000:
da4625ac2637e4 Russell King    2017-07-25  38  		return "10Gbps";
da4625ac2637e4 Russell King    2017-07-25  39  	case SPEED_14000:
da4625ac2637e4 Russell King    2017-07-25  40  		return "14Gbps";
da4625ac2637e4 Russell King    2017-07-25  41  	case SPEED_20000:
da4625ac2637e4 Russell King    2017-07-25  42  		return "20Gbps";
da4625ac2637e4 Russell King    2017-07-25  43  	case SPEED_25000:
da4625ac2637e4 Russell King    2017-07-25  44  		return "25Gbps";
da4625ac2637e4 Russell King    2017-07-25  45  	case SPEED_40000:
da4625ac2637e4 Russell King    2017-07-25  46  		return "40Gbps";
da4625ac2637e4 Russell King    2017-07-25  47  	case SPEED_50000:
da4625ac2637e4 Russell King    2017-07-25  48  		return "50Gbps";
da4625ac2637e4 Russell King    2017-07-25  49  	case SPEED_56000:
da4625ac2637e4 Russell King    2017-07-25  50  		return "56Gbps";
a9927022c4491b Mika Westerberg 2026-01-15  51  	case SPEED_80000:
a9927022c4491b Mika Westerberg 2026-01-15  52  		return "80Gbps";
da4625ac2637e4 Russell King    2017-07-25  53  	case SPEED_100000:
da4625ac2637e4 Russell King    2017-07-25  54  		return "100Gbps";
5a3144e4195621 Heiner Kallweit 2019-04-13  55  	case SPEED_200000:
5a3144e4195621 Heiner Kallweit 2019-04-13  56  		return "200Gbps";
14af7fd1d4279c Jiri Pirko      2019-10-12  57  	case SPEED_400000:
14af7fd1d4279c Jiri Pirko      2019-10-12  58  		return "400Gbps";
404c76783f3221 Amit Cohen      2022-10-20  59  	case SPEED_800000:
404c76783f3221 Amit Cohen      2022-10-20  60  		return "800Gbps";
491c5dc98b848c Yael Chemla     2025-11-19  61  	case SPEED_1600000:
491c5dc98b848c Yael Chemla     2025-11-19  62  		return "1600Gbps";
da4625ac2637e4 Russell King    2017-07-25  63  	case SPEED_UNKNOWN:
da4625ac2637e4 Russell King    2017-07-25  64  		return "Unknown";
da4625ac2637e4 Russell King    2017-07-25  65  	default:
da4625ac2637e4 Russell King    2017-07-25  66  		return "Unsupported (update phy-core.c)";
da4625ac2637e4 Russell King    2017-07-25  67  	}
da4625ac2637e4 Russell King    2017-07-25  68  }
da4625ac2637e4 Russell King    2017-07-25  69  EXPORT_SYMBOL_GPL(phy_speed_to_str);
da4625ac2637e4 Russell King    2017-07-25  70  

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-29  1:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <202609290735.6l9LLSfn-lkp@intel.com>
2026-09-29  1:10 ` net: ethtool: add BaseC2C medium & AUI C2C link modes kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox