Hi "Maciej,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on kvm/queue]
[also build test ERROR on kvms390/next v5.14-rc5 next-20210813]
[cannot apply to kvm-ppc/kvm-ppc-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Maciej-S-Szmigiero/KVM-Scalable-...
base:
https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
config: i386-randconfig-s001-20210813 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
#
https://github.com/0day-ci/linux/commit/172883fe88fb9dc0533b916b2f4177008...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Maciej-S-Szmigiero/KVM-Scalable-memslots-implementation/20210814-040318
git checkout 172883fe88fb9dc0533b916b2f4177008d35e05a
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir
ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: arch/x86/kvm/x86.o: in function `kvm_arch_commit_memory_region':
> arch/x86/kvm/x86.c:11602: undefined reference to `__udivdi3'
vim +11602 arch/x86/kvm/x86.c
11584
11585 void kvm_arch_commit_memory_region(struct kvm *kvm,
11586 const struct kvm_userspace_memory_region *mem,
11587 struct kvm_memory_slot *old,
11588 const struct kvm_memory_slot *new,
11589 enum kvm_mr_change change)
11590 {
11591 if (change == KVM_MR_CREATE)
11592 kvm->arch.n_memslots_pages += new->npages;
11593 else if (change == KVM_MR_DELETE) {
11594 WARN_ON(kvm->arch.n_memslots_pages < old->npages);
11595 kvm->arch.n_memslots_pages -= old->npages;
11596 }
11597
11598 if (!kvm->arch.n_requested_mmu_pages) {
11599 unsigned long nr_mmu_pages;
11600
11601 nr_mmu_pages = kvm->arch.n_memslots_pages *
11602 KVM_PERMILLE_MMU_PAGES / 1000;
11603 nr_mmu_pages = max(nr_mmu_pages, KVM_MIN_ALLOC_MMU_PAGES);
11604 kvm_mmu_change_mmu_pages(kvm, nr_mmu_pages);
11605 }
11606
11607 kvm_mmu_slot_apply_flags(kvm, old, new, change);
11608
11609 /* Free the arrays associated with the old memslot. */
11610 if (change == KVM_MR_MOVE)
11611 kvm_arch_free_memslot(kvm, old);
11612 }
11613
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org