From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: include/linux/u64_stats_sync.h:84:2: error: call to '__compiletime_assert_620' declared with 'error' attribute: BUILD_BUG_ON failed: len % sizeof(u64_stats_t)
Date: Fri, 06 Mar 2026 22:46:36 +0800 [thread overview]
Message-ID: <202603062206.FySwRik2-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>
CC: Ido Schimmel <idosch@nvidia.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5ee8dbf54602dc340d6235b1d6aa17c0f283f48c
commit: 35710f0db8011e7ebbfb5b929a0575c3a09b761d macsec: fix memcpy with u64_stats
date: 6 weeks ago
:::::: branch date: 19 hours ago
:::::: commit date: 6 weeks ago
config: s390-randconfig-001-20260306 (https://download.01.org/0day-ci/archive/20260306/202603062206.FySwRik2-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/202603062206.FySwRik2-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/202603062206.FySwRik2-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/net/macsec.c:13:
In file included from include/linux/etherdevice.h:21:
In file included from include/linux/netdevice.h:38:
In file included from include/net/net_namespace.h:17:
In file included from include/net/netns/mib.h:5:
In file included from include/net/snmp.h:42:
>> include/linux/u64_stats_sync.h:84:2: error: call to '__compiletime_assert_620' declared with 'error' attribute: BUILD_BUG_ON failed: len % sizeof(u64_stats_t)
84 | BUILD_BUG_ON(len % sizeof(u64_stats_t));
| ^
include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^
include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^
include/linux/compiler_types.h:631:2: note: expanded from macro 'compiletime_assert'
631 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:619:2: note: expanded from macro '_compiletime_assert'
619 | __compiletime_assert(condition, msg, prefix, suffix)
| ^
include/linux/compiler_types.h:612:4: note: expanded from macro '__compiletime_assert'
612 | prefix ## suffix(); \
| ^
<scratch space>:7:1: note: expanded from here
7 | __compiletime_assert_620
| ^
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 +84 include/linux/u64_stats_sync.h
316580b69d0a7a Eric Dumazet 2019-11-07 81
df153517e4d440 David Yang 2026-01-20 82 static inline void *u64_stats_copy(void *dst, const void *src, size_t len)
df153517e4d440 David Yang 2026-01-20 83 {
df153517e4d440 David Yang 2026-01-20 @84 BUILD_BUG_ON(len % sizeof(u64_stats_t));
df153517e4d440 David Yang 2026-01-20 85 for (size_t i = 0; i < len / sizeof(u64_stats_t); i++)
df153517e4d440 David Yang 2026-01-20 86 ((u64 *)dst)[i] = local64_read(&((local64_t *)src)[i]);
df153517e4d440 David Yang 2026-01-20 87 return dst;
df153517e4d440 David Yang 2026-01-20 88 }
df153517e4d440 David Yang 2026-01-20 89
:::::: The code at line 84 was first introduced by commit
:::::: df153517e4d4403d13d603cccef68255783d396b u64_stats: Introduce u64_stats_copy()
:::::: TO: David Yang <mmyangfl@gmail.com>
:::::: CC: Jakub Kicinski <kuba@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-03-06 14:46 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=202603062206.FySwRik2-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.