* [kvm:kvm-memprot-v4 33/54] include/linux/kvm_host.h:2640:9: error: call to '__compiletime_assert_505' declared with 'error' attribute: Need native word sized stores/loads for atomicity.
@ 2026-11-16 1:33 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-16 1:33 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: kvm@vger.kernel.org
CC: Farrah Chen <farrah.chen@intel.com>
TO: Nicolas Saenz Julienne <nsaenz@amazon.com>
CC: Paolo Bonzini <pbonzini@redhat.com>
tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git kvm-memprot-v4
head: e71c4e83c03926c300f6c43e79b783d47ba8b588
commit: 4764db743fe860556eea711a26ef11c74db647d2 [33/54] KVM: Introduce a generation number for memory attributes
:::::: branch date: 13 days ago
:::::: commit date: 13 days ago
config: i386-buildonly-randconfig-1005-20261115 (https://download.01.org/0day-ci/archive/20261116/202611160924.tySCf5ok-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261116/202611160924.tySCf5ok-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/202611160924.tySCf5ok-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/x86/kvm/../../../virt/kvm/pfncache.c:14:
>> include/linux/kvm_host.h:2640:9: error: call to '__compiletime_assert_505' declared with 'error' attribute: Need native word sized stores/loads for atomicity.
2640 | return smp_load_acquire(&kvm->mem_attrs.generation);
| ^
include/asm-generic/barrier.h:176:29: note: expanded from macro 'smp_load_acquire'
176 | #define smp_load_acquire(p) __smp_load_acquire(p)
| ^
arch/x86/include/asm/barrier.h:69:2: note: expanded from macro '__smp_load_acquire'
69 | compiletime_assert_atomic_type(*p); \
| ^
include/linux/compiler_types.h:705:2: note: expanded from macro 'compiletime_assert_atomic_type'
705 | compiletime_assert(__native_word(t), \
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:690:2: note: expanded from macro '_compiletime_assert'
690 | __compiletime_assert(condition, msg, prefix, suffix)
| ^
include/linux/compiler_types.h:683:4: note: expanded from macro '__compiletime_assert'
683 | prefix ## suffix(); \
| ^
<scratch space>:107:1: note: expanded from here
107 | __compiletime_assert_505
| ^
In file included from arch/x86/kvm/../../../virt/kvm/pfncache.c:14:
>> include/linux/kvm_host.h:2640:9: error: call to '__compiletime_assert_505' declared with 'error' attribute: Need native word sized stores/loads for atomicity.
include/asm-generic/barrier.h:176:29: note: expanded from macro 'smp_load_acquire'
176 | #define smp_load_acquire(p) __smp_load_acquire(p)
| ^
arch/x86/include/asm/barrier.h:69:2: note: expanded from macro '__smp_load_acquire'
69 | compiletime_assert_atomic_type(*p); \
| ^
include/linux/compiler_types.h:705:2: note: expanded from macro 'compiletime_assert_atomic_type'
705 | compiletime_assert(__native_word(t), \
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:690:2: note: expanded from macro '_compiletime_assert'
690 | __compiletime_assert(condition, msg, prefix, suffix)
| ^
include/linux/compiler_types.h:683:4: note: expanded from macro '__compiletime_assert'
683 | prefix ## suffix(); \
| ^
<scratch space>:107:1: note: expanded from here
107 | __compiletime_assert_505
| ^
2 errors generated.
--
In file included from arch/x86/kvm/x86.c:20:
>> include/linux/kvm_host.h:2640:9: error: call to '__compiletime_assert_505' declared with 'error' attribute: Need native word sized stores/loads for atomicity.
2640 | return smp_load_acquire(&kvm->mem_attrs.generation);
| ^
include/asm-generic/barrier.h:176:29: note: expanded from macro 'smp_load_acquire'
176 | #define smp_load_acquire(p) __smp_load_acquire(p)
| ^
arch/x86/include/asm/barrier.h:69:2: note: expanded from macro '__smp_load_acquire'
69 | compiletime_assert_atomic_type(*p); \
| ^
include/linux/compiler_types.h:705:2: note: expanded from macro 'compiletime_assert_atomic_type'
705 | compiletime_assert(__native_word(t), \
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:690:2: note: expanded from macro '_compiletime_assert'
690 | __compiletime_assert(condition, msg, prefix, suffix)
| ^
include/linux/compiler_types.h:683:4: note: expanded from macro '__compiletime_assert'
683 | prefix ## suffix(); \
| ^
<scratch space>:107:1: note: expanded from here
107 | __compiletime_assert_505
| ^
1 error generated.
--
In file included from arch/x86/kvm/../../../virt/kvm/kvm_main.c:17:
>> include/linux/kvm_host.h:2640:9: error: call to '__compiletime_assert_505' declared with 'error' attribute: Need native word sized stores/loads for atomicity.
2640 | return smp_load_acquire(&kvm->mem_attrs.generation);
| ^
include/asm-generic/barrier.h:176:29: note: expanded from macro 'smp_load_acquire'
176 | #define smp_load_acquire(p) __smp_load_acquire(p)
| ^
arch/x86/include/asm/barrier.h:69:2: note: expanded from macro '__smp_load_acquire'
69 | compiletime_assert_atomic_type(*p); \
| ^
include/linux/compiler_types.h:705:2: note: expanded from macro 'compiletime_assert_atomic_type'
705 | compiletime_assert(__native_word(t), \
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:690:2: note: expanded from macro '_compiletime_assert'
690 | __compiletime_assert(condition, msg, prefix, suffix)
| ^
include/linux/compiler_types.h:683:4: note: expanded from macro '__compiletime_assert'
683 | prefix ## suffix(); \
| ^
<scratch space>:107:1: note: expanded from here
107 | __compiletime_assert_505
| ^
In file included from arch/x86/kvm/../../../virt/kvm/kvm_main.c:17:
>> include/linux/kvm_host.h:2640:9: error: call to '__compiletime_assert_505' declared with 'error' attribute: Need native word sized stores/loads for atomicity.
include/asm-generic/barrier.h:176:29: note: expanded from macro 'smp_load_acquire'
176 | #define smp_load_acquire(p) __smp_load_acquire(p)
| ^
arch/x86/include/asm/barrier.h:69:2: note: expanded from macro '__smp_load_acquire'
69 | compiletime_assert_atomic_type(*p); \
| ^
include/linux/compiler_types.h:705:2: note: expanded from macro 'compiletime_assert_atomic_type'
705 | compiletime_assert(__native_word(t), \
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:690:2: note: expanded from macro '_compiletime_assert'
690 | __compiletime_assert(condition, msg, prefix, suffix)
| ^
include/linux/compiler_types.h:683:4: note: expanded from macro '__compiletime_assert'
683 | prefix ## suffix(); \
| ^
<scratch space>:107:1: note: expanded from here
107 | __compiletime_assert_505
| ^
arch/x86/kvm/../../../virt/kvm/kvm_main.c:2795:2: error: call to '__compiletime_assert_801' declared with 'error' attribute: BUILD_BUG_ON failed: sizeof(attrs->attributes) != sizeof(unsigned long)
2795 | BUILD_BUG_ON(sizeof(attrs->attributes) != sizeof(unsigned long));
| ^
include/linux/build_bug.h:51:2: note: expanded from macro 'BUILD_BUG_ON'
51 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^
include/linux/build_bug.h:40:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^
include/linux/compiler_types.h:702:2: note: expanded from macro 'compiletime_assert'
702 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:690:2: note: expanded from macro '_compiletime_assert'
690 | __compiletime_assert(condition, msg, prefix, suffix)
| ^
include/linux/compiler_types.h:683:4: note: expanded from macro '__compiletime_assert'
683 | prefix ## suffix(); \
| ^
<scratch space>:167:1: note: expanded from here
167 | __compiletime_assert_801
| ^
3 errors generated.
vim +2640 include/linux/kvm_host.h
4764db743fe860 Nicolas Saenz Julienne 2026-09-18 2628
4764db743fe860 Nicolas Saenz Julienne 2026-09-18 2629 static inline u64 kvm_mem_attributes_generation(struct kvm *kvm)
4764db743fe860 Nicolas Saenz Julienne 2026-09-18 2630 {
4764db743fe860 Nicolas Saenz Julienne 2026-09-18 2631 RCU_LOCKDEP_WARN(!lockdep_is_held(&kvm->slots_lock) &&
4764db743fe860 Nicolas Saenz Julienne 2026-09-18 2632 !srcu_read_lock_held(&kvm->srcu),
4764db743fe860 Nicolas Saenz Julienne 2026-09-18 2633 "Suspicious memory attribute generation usage\n");
4764db743fe860 Nicolas Saenz Julienne 2026-09-18 2634
4764db743fe860 Nicolas Saenz Julienne 2026-09-18 2635 /*
4764db743fe860 Nicolas Saenz Julienne 2026-09-18 2636 * The acquire pairs with the release in kvm_vm_set_mem_attributes().
4764db743fe860 Nicolas Saenz Julienne 2026-09-18 2637 * Memory attributes should only be queried _after_ storing the
4764db743fe860 Nicolas Saenz Julienne 2026-09-18 2638 * generation number.
4764db743fe860 Nicolas Saenz Julienne 2026-09-18 2639 */
4764db743fe860 Nicolas Saenz Julienne 2026-09-18 @2640 return smp_load_acquire(&kvm->mem_attrs.generation);
4764db743fe860 Nicolas Saenz Julienne 2026-09-18 2641 }
f1c09df8af4596 Nicolas Saenz Julienne 2026-09-18 2642 #else
f1c09df8af4596 Nicolas Saenz Julienne 2026-09-18 2643 static inline u64 kvm_supported_vm_mem_attributes(struct kvm *kvm)
f1c09df8af4596 Nicolas Saenz Julienne 2026-09-18 2644 {
f1c09df8af4596 Nicolas Saenz Julienne 2026-09-18 2645 return 0;
f1c09df8af4596 Nicolas Saenz Julienne 2026-09-18 2646 }
4117eb0108b90b Nicolas Saenz Julienne 2026-09-18 2647
--
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-11-16 1:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-16 1:33 [kvm:kvm-memprot-v4 33/54] include/linux/kvm_host.h:2640:9: error: call to '__compiletime_assert_505' declared with 'error' attribute: Need native word sized stores/loads for atomicity 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.