* drivers/net/dsa/yt921x.c:1601:9: error: call to '__compiletime_assert_1192' declared with 'error' attribute: FIELD_PREP: value too large for the field
@ 2026-03-05 19:35 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-05 19:35 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
CC: linux-kernel@vger.kernel.org
TO: David Yang <mmyangfl@gmail.com>
CC: Jakub Kicinski <kuba@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c107785c7e8dbabd1c18301a1c362544b5786282
commit: 186623f4aa724c46cbb4dbd5235cf6942215f5b5 net: dsa: yt921x: Add support for Motorcomm YT921x
date: 5 months ago
:::::: branch date: 20 hours ago
:::::: commit date: 5 months ago
config: s390-randconfig-001-20260306 (https://download.01.org/0day-ci/archive/20260306/202603060331.tsFdvPCv-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260306/202603060331.tsFdvPCv-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/202603060331.tsFdvPCv-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/net/dsa/yt921x.c:1601:9: error: call to '__compiletime_assert_1192' declared with 'error' attribute: FIELD_PREP: value too large for the field
1601 | ctrl = YT921X_PORT_VLAN_CTRL_CVID(vid);
| ^
drivers/net/dsa/yt921x.h:363:43: note: expanded from macro 'YT921X_PORT_VLAN_CTRL_CVID'
363 | #define YT921X_PORT_VLAN_CTRL_CVID(x) FIELD_PREP(YT921X_PORT_VLAN_CTRL_CVID_M, (x))
| ^
include/linux/bitfield.h:115:3: note: expanded from macro 'FIELD_PREP'
115 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \
| ^
include/linux/bitfield.h:68:3: note: expanded from macro '__BF_FIELD_CHECK'
68 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:585:2: note: expanded from macro '_compiletime_assert'
585 | __compiletime_assert(condition, msg, prefix, suffix)
| ^
include/linux/compiler_types.h:578:4: note: expanded from macro '__compiletime_assert'
578 | prefix ## suffix(); \
| ^
<scratch space>:46:1: note: expanded from here
46 | __compiletime_assert_1192
| ^
1 error generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for OF_GPIO
Depends on [n]: GPIOLIB [=y] && OF [=y] && HAS_IOMEM [=n]
Selected by [y]:
- REGULATOR_RT5133 [=y] && REGULATOR [=y] && I2C [=y] && GPIOLIB [=y] && OF [=y]
vim +1601 drivers/net/dsa/yt921x.c
186623f4aa724c4 David Yang 2025-10-17 1593
186623f4aa724c4 David Yang 2025-10-17 1594 static int
186623f4aa724c4 David Yang 2025-10-17 1595 yt921x_port_set_pvid(struct yt921x_priv *priv, int port, u16 vid)
186623f4aa724c4 David Yang 2025-10-17 1596 {
186623f4aa724c4 David Yang 2025-10-17 1597 u32 mask;
186623f4aa724c4 David Yang 2025-10-17 1598 u32 ctrl;
186623f4aa724c4 David Yang 2025-10-17 1599
186623f4aa724c4 David Yang 2025-10-17 1600 mask = YT921X_PORT_VLAN_CTRL_CVID_M;
186623f4aa724c4 David Yang 2025-10-17 @1601 ctrl = YT921X_PORT_VLAN_CTRL_CVID(vid);
186623f4aa724c4 David Yang 2025-10-17 1602 return yt921x_reg_update_bits(priv, YT921X_PORTn_VLAN_CTRL(port),
186623f4aa724c4 David Yang 2025-10-17 1603 mask, ctrl);
186623f4aa724c4 David Yang 2025-10-17 1604 }
186623f4aa724c4 David Yang 2025-10-17 1605
--
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-03-05 19:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 19:35 drivers/net/dsa/yt921x.c:1601:9: error: call to '__compiletime_assert_1192' declared with 'error' attribute: FIELD_PREP: value too large for the field 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.