From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: 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
Date: Fri, 06 Mar 2026 03:35:12 +0800 [thread overview]
Message-ID: <202603060331.tsFdvPCv-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
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
reply other threads:[~2026-03-05 19:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202603060331.tsFdvPCv-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.