All of lore.kernel.org
 help / color / mirror / Atom feed
* 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)
@ 2026-03-06 14:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-06 14:46 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>
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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-03-06 14:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-06 14:46 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) 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.