ld.lld: error: call to __compiletime_assert_135 marked "dontcall-error": BUILD_BUG_ON failed: !__builtin_constant_p(res)

From: kernel test robot
Date: Wed Sep 25 2024 - 04:47:22 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 684a64bf32b6e488004e0ad7f0d7e922798f65b6
commit: 7adaf37f7f104a7ee5f150af491674ccbbfc4114 lib/bitmap: add compile-time test for __assign_bit() optimization
date: 6 months ago
config: um-randconfig-001-20240925 (https://download.01.org/0day-ci/archive/20240925/202409251656.lmhUs1ya-lkp@xxxxxxxxx/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 7773243d9916f98ba0ffce0c3a960e4aa9f03e81)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240925/202409251656.lmhUs1ya-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409251656.lmhUs1ya-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> ld.lld: error: call to __compiletime_assert_135 marked "dontcall-error": BUILD_BUG_ON failed: !__builtin_constant_p(res)

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki