* Re: net: ethtool: add BaseC2C medium & AUI C2C link modes
@ 2026-09-28 21:47 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2026-09-28 21:47 UTC (permalink / raw)
Cc: 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/202609290519.cl1XRHun-lkp%40intel.com
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260929/202609290519.cl1XRHun-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260929/202609290519.cl1XRHun-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/oe-kbuild-all/202609290519.cl1XRHun-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from <command-line>:
drivers/net/phy/phy-core.c: In function 'phy_speed_to_str':
>> include/linux/compiler_types.h:702:45: error: call to '__compiletime_assert_448' declared with attribute error: 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.
--
702 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:683:25: note: in definition of macro '__compiletime_assert'
683 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:702:9: note: in expansion of macro '_compiletime_assert'
702 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:40:37: note: in expansion of macro 'compiletime_assert'
40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
drivers/net/phy/phy-core.c:21:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
21 | BUILD_BUG_ON_MSG(__ETHTOOL_LINK_MODE_MASK_NBITS != 125,
| ^~~~~~~~~~~~~~~~
In function 'phy_speed_to_str',
inlined from 'phy_check_downshift' at drivers/net/phy/phy-core.c:389:2:
>> include/linux/compiler_types.h:702:45: error: call to '__compiletime_assert_448' declared with attribute error: 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.
--
In file included from <command-line>:
phy-core.c: In function 'phy_speed_to_str':
>> include/linux/compiler_types.h:702:45: error: call to '__compiletime_assert_448' declared with attribute error: 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.
--
702 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:683:25: note: in definition of macro '__compiletime_assert'
683 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:702:9: note: in expansion of macro '_compiletime_assert'
702 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:40:37: note: in expansion of macro 'compiletime_assert'
40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
phy-core.c:21:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
21 | BUILD_BUG_ON_MSG(__ETHTOOL_LINK_MODE_MASK_NBITS != 125,
| ^~~~~~~~~~~~~~~~
In function 'phy_speed_to_str',
inlined from 'phy_check_downshift' at phy-core.c:389:2:
>> include/linux/compiler_types.h:702:45: error: call to '__compiletime_assert_448' declared with attribute error: 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 +/__compiletime_assert_448 +702 include/linux/compiler_types.h
eb5c2d4b45e3d2 Will Deacon 2020-07-21 688
eb5c2d4b45e3d2 Will Deacon 2020-07-21 689 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 690 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 691
eb5c2d4b45e3d2 Will Deacon 2020-07-21 692 /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21 693 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 694 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21 695 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 696 *
eb5c2d4b45e3d2 Will Deacon 2020-07-21 697 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 698 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 699 * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21 700 */
eb5c2d4b45e3d2 Will Deacon 2020-07-21 701 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @702 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 703
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: net: ethtool: add BaseC2C medium & AUI C2C link modes
@ 2026-09-29 0:11 kernel test robot
2026-09-29 1:10 ` kernel test robot
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2026-09-29 0:11 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: 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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: net: ethtool: add BaseC2C medium & AUI C2C link modes
2026-09-29 0:11 kernel test robot
@ 2026-09-29 1:10 ` kernel test robot
0 siblings, 0 replies; 3+ messages 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] 3+ messages in thread
end of thread, other threads:[~2026-09-29 1:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-28 21:47 net: ethtool: add BaseC2C medium & AUI C2C link modes kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-09-29 0:11 kernel test robot
2026-09-29 1:10 ` kernel test robot
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.