* [sean-jc:x86/virt_enable_less_sucky 4/5] arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:6443:10: error: use of undeclared identifier 'kvm_usage_count'; did you mean 'set_page_count'?
@ 2024-05-18 20:36 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-18 20:36 UTC (permalink / raw)
To: Sean Christopherson; +Cc: llvm, oe-kbuild-all
tree: https://github.com/sean-jc/linux x86/virt_enable_less_sucky
head: 371a6c885b7bffb276ebf0a7e660d2702b1555e7
commit: b9f6ab5e571d77c7cc35dd6f4642677fdc6e8bc3 [4/5] KVM: Add a module param to allow enabled virtualization when KVM is loaded
config: powerpc64-randconfig-003-20240518 (https://download.01.org/0day-ci/archive/20240519/202405190405.ceRSiCwy-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240519/202405190405.ceRSiCwy-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/202405190405.ceRSiCwy-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:6443:10: error: use of undeclared identifier 'kvm_usage_count'; did you mean 'set_page_count'?
BUG_ON(kvm_usage_count);
^~~~~~~~~~~~~~~
set_page_count
include/asm-generic/bug.h:166:45: note: expanded from macro 'BUG_ON'
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/compiler.h:77:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
include/linux/page_ref.h:97:20: note: 'set_page_count' declared here
static inline void set_page_count(struct page *page, int v)
^
1 error generated.
vim +6443 arch/powerpc/kvm/../../../virt/kvm/kvm_main.c
6429
6430 void kvm_exit(void)
6431 {
6432 int cpu;
6433
6434 /*
6435 * Note, unregistering /dev/kvm doesn't strictly need to come first,
6436 * fops_get(), a.k.a. try_module_get(), prevents acquiring references
6437 * to KVM while the module is being stopped.
6438 */
6439 misc_deregister(&kvm_dev);
6440
6441 if (enable_virt_at_load) {
6442 kvm_disable_virtualization();
> 6443 BUG_ON(kvm_usage_count);
6444 }
6445
6446 debugfs_remove_recursive(kvm_debugfs_dir);
6447 for_each_possible_cpu(cpu)
6448 free_cpumask_var(per_cpu(cpu_kick_mask, cpu));
6449 kmem_cache_destroy(kvm_vcpu_cache);
6450 kvm_vfio_ops_exit();
6451 kvm_async_pf_deinit();
6452 kvm_irqfd_exit();
6453 }
6454 EXPORT_SYMBOL_GPL(kvm_exit);
6455
--
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:[~2024-05-18 20:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-18 20:36 [sean-jc:x86/virt_enable_less_sucky 4/5] arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:6443:10: error: use of undeclared identifier 'kvm_usage_count'; did you mean 'set_page_count'? kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox