From: kernel test robot <lkp@intel.com>
To: Sean Christopherson <seanjc@google.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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'?
Date: Sun, 19 May 2024 04:36:45 +0800 [thread overview]
Message-ID: <202405190405.ceRSiCwy-lkp@intel.com> (raw)
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
reply other threads:[~2024-05-18 20:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202405190405.ceRSiCwy-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=seanjc@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox