All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: Re: net: ethtool: add BaseC2C medium & AUI C2C link modes
Date: Tue, 29 Sep 2026 08:11:19 +0800	[thread overview]
Message-ID: <202609290735.6l9LLSfn-lkp@intel.com> (raw)

:::::: 
:::::: Manual check reason: "__compiletime_assert_NNN"
:::::: 

BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <202609290735.6l9LLSfn-lkp@intel.com>
References: <202609290735.6l9LLSfn-lkp@intel.com>

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
:::::: branch date: 25 hours ago
:::::: commit date: 25 hours ago
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

             reply	other threads:[~2026-09-29  0:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-29  0:11 kernel test robot [this message]
2026-09-29  1:10 ` net: ethtool: add BaseC2C medium & AUI C2C link modes kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-09-28 21:47 kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202609290735.6l9LLSfn-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.