* [kvm:queue 23/30] include/linux/compiler_types.h:568:45: error: call to '__compiletime_assert_421' declared with attribute error: BUILD_BUG failed
@ 2025-06-14 1:35 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-06-14 1:35 UTC (permalink / raw)
To: Ackerley Tng; +Cc: oe-kbuild-all, kvm, Farrah Chen, Paolo Bonzini, Fuad Tabba
tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head: 79150772457f4d45e38b842d786240c36bb1f97f
commit: f562719cc02e3f85fee6daadc8c4bdb6a99132f5 [23/30] KVM: x86: Consult guest_memfd when computing max_mapping_level
config: x86_64-buildonly-randconfig-003-20250614 (https://download.01.org/0day-ci/archive/20250614/202506140912.0npst1Ch-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250614/202506140912.0npst1Ch-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/oe-kbuild-all/202506140912.0npst1Ch-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from <command-line>:
In function 'kvm_gmem_mapping_order',
inlined from 'kvm_gmem_max_mapping_level' at arch/x86/kvm/mmu/mmu.c:3302:14,
inlined from 'kvm_mmu_max_mapping_level' at arch/x86/kvm/mmu/mmu.c:3318:10:
>> include/linux/compiler_types.h:568:45: error: call to '__compiletime_assert_421' declared with attribute error: BUILD_BUG failed
568 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:549:25: note: in definition of macro '__compiletime_assert'
549 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:568:9: note: in expansion of macro '_compiletime_assert'
568 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:59:21: note: in expansion of macro 'BUILD_BUG_ON_MSG'
59 | #define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed")
| ^~~~~~~~~~~~~~~~
include/linux/kvm_host.h:2604:9: note: in expansion of macro 'BUILD_BUG'
2604 | BUILD_BUG();
| ^~~~~~~~~
vim +/__compiletime_assert_421 +568 include/linux/compiler_types.h
eb5c2d4b45e3d2 Will Deacon 2020-07-21 554
eb5c2d4b45e3d2 Will Deacon 2020-07-21 555 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 556 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 557
eb5c2d4b45e3d2 Will Deacon 2020-07-21 558 /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21 559 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 560 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21 561 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 562 *
eb5c2d4b45e3d2 Will Deacon 2020-07-21 563 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 564 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 565 * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21 566 */
eb5c2d4b45e3d2 Will Deacon 2020-07-21 567 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @568 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 569
:::::: The code at line 568 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
:::::: TO: Will Deacon <will@kernel.org>
:::::: CC: Will Deacon <will@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:[~2025-06-14 1:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-14 1:35 [kvm:queue 23/30] include/linux/compiler_types.h:568:45: error: call to '__compiletime_assert_421' declared with attribute error: BUILD_BUG failed 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.