tree:
https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git kvm-unmapped-poison
head: 51d4d402256b9c1b8e38be95bfa2bb28dc8189ad
commit: 51d4d402256b9c1b8e38be95bfa2bb28dc8189ad [7/7] KVM: unmap guest memory with
poison
config: s390-randconfig-r011-20210312 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git/commit/?id=...
git remote add kas
https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git
git fetch --no-tags kas kvm-unmapped-poison
git checkout 51d4d402256b9c1b8e38be95bfa2bb28dc8189ad
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
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 >>):
arch/s390/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_share_memory':
> arch/s390/kvm/../../../virt/kvm/kvm_main.c:2809:8: error:
implicit declaration of function 'TestClearPageHWPoison'; did you mean
'ClearPageHWPoison'? [-Werror=implicit-function-declaration]
2809 | if
(!TestClearPageHWPoison(page))
| ^~~~~~~~~~~~~~~~~~~~~
| ClearPageHWPoison
cc1: some warnings being treated as errors
vim +2809 arch/s390/kvm/../../../virt/kvm/kvm_main.c
2780
2781 int kvm_share_memory(struct kvm *kvm, unsigned long gfn, unsigned long npages)
2782 {
2783 unsigned long end = gfn + npages;
2784
2785 if (!npages)
2786 return 0;
2787
2788 /*
2789 * Out of slots.
2790 * Still worth to proceed: the new range may merge with an existing
2791 * one.
2792 */
2793 WARN_ON_ONCE(nr_shared_ranges == ARRAY_SIZE(shared_ranges));
2794
2795 if (mmap_write_lock_killable(kvm->mm))
2796 return -KVM_EINTR;
2797 nr_shared_ranges = add_range_with_merge(shared_ranges,
2798 ARRAY_SIZE(shared_ranges),
2799 nr_shared_ranges, gfn, end);
2800 nr_shared_ranges = clean_sort_range(shared_ranges,
2801 ARRAY_SIZE(shared_ranges));
2802 mmap_write_unlock(kvm->mm);
2803
2804 for (; gfn < end; gfn++) {
2805 struct page *page = gfn_to_page(kvm, gfn);
2806
2807 if (page == KVM_ERR_PTR_BAD_PAGE)
2808 continue;
2809 if (!TestClearPageHWPoison(page))
2810 continue;
2811 lock_page(page);
2812 remove_migration_ptes(page, page, false);
2813 unlock_page(page);
2814 put_page(page);
2815 }
2816
2817 return 0;
2818 }
2819
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org