tree:
https://github.com/rhvgoyal/linux asyncpf-error-v1
head: 94f54bb2e6f969aa7ceb778bb15ac986f3c9cecf
commit: 94f54bb2e6f969aa7ceb778bb15ac986f3c9cecf [7/7] kvm, async_pf: Use FOLL_WRITE only
for write faults
config: s390-randconfig-s032-20200622 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-dirty
git checkout 94f54bb2e6f969aa7ceb778bb15ac986f3c9cecf
# save the attached .config to linux build tree
make W=1 C=1 ARCH=s390 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> arch/s390/kvm/kvm-s390.c:3982:32: sparse: sparse: not enough
arguments for function kvm_setup_async_pf
vim +3982 arch/s390/kvm/kvm-s390.c
3c038e6be0e299d Dominik Dingel 2013-10-07 3956
3c038e6be0e299d Dominik Dingel 2013-10-07 3957 static int
kvm_arch_setup_async_pf(struct kvm_vcpu *vcpu)
3c038e6be0e299d Dominik Dingel 2013-10-07 3958 {
3c038e6be0e299d Dominik Dingel 2013-10-07 3959 hva_t hva;
3c038e6be0e299d Dominik Dingel 2013-10-07 3960 struct kvm_arch_async_pf arch;
3c038e6be0e299d Dominik Dingel 2013-10-07 3961 int rc;
3c038e6be0e299d Dominik Dingel 2013-10-07 3962
3c038e6be0e299d Dominik Dingel 2013-10-07 3963 if (vcpu->arch.pfault_token ==
KVM_S390_PFAULT_TOKEN_INVALID)
3c038e6be0e299d Dominik Dingel 2013-10-07 3964 return 0;
3c038e6be0e299d Dominik Dingel 2013-10-07 3965 if
((vcpu->arch.sie_block->gpsw.mask & vcpu->arch.pfault_select) !=
3c038e6be0e299d Dominik Dingel 2013-10-07 3966 vcpu->arch.pfault_compare)
3c038e6be0e299d Dominik Dingel 2013-10-07 3967 return 0;
3c038e6be0e299d Dominik Dingel 2013-10-07 3968 if (psw_extint_disabled(vcpu))
3c038e6be0e299d Dominik Dingel 2013-10-07 3969 return 0;
9a022067ad75b11 David Hildenbrand 2014-08-05 3970 if (kvm_s390_vcpu_has_irq(vcpu, 0))
3c038e6be0e299d Dominik Dingel 2013-10-07 3971 return 0;
b9224cd7381aea7 David Hildenbrand 2018-04-30 3972 if
(!(vcpu->arch.sie_block->gcr[0] & CR0_SERVICE_SIGNAL_SUBMASK))
3c038e6be0e299d Dominik Dingel 2013-10-07 3973 return 0;
3c038e6be0e299d Dominik Dingel 2013-10-07 3974 if
(!vcpu->arch.gmap->pfault_enabled)
3c038e6be0e299d Dominik Dingel 2013-10-07 3975 return 0;
3c038e6be0e299d Dominik Dingel 2013-10-07 3976
81480cc19c56efb Heiko Carstens 2014-01-01 3977 hva = gfn_to_hva(vcpu->kvm,
gpa_to_gfn(current->thread.gmap_addr));
81480cc19c56efb Heiko Carstens 2014-01-01 3978 hva += current->thread.gmap_addr
& ~PAGE_MASK;
81480cc19c56efb Heiko Carstens 2014-01-01 3979 if (read_guest_real(vcpu,
vcpu->arch.pfault_token, &arch.pfault_token, 8))
3c038e6be0e299d Dominik Dingel 2013-10-07 3980 return 0;
3c038e6be0e299d Dominik Dingel 2013-10-07 3981
3c038e6be0e299d Dominik Dingel 2013-10-07 @3982 rc = kvm_setup_async_pf(vcpu,
current->thread.gmap_addr, hva, &arch);
3c038e6be0e299d Dominik Dingel 2013-10-07 3983 return rc;
3c038e6be0e299d Dominik Dingel 2013-10-07 3984 }
3c038e6be0e299d Dominik Dingel 2013-10-07 3985
:::::: The code at line 3982 was first introduced by commit
:::::: 3c038e6be0e299d4d3762d0a9a29f02de6e04991 KVM: async_pf: Async page fault support on
s390
:::::: TO: Dominik Dingel <dingel(a)linux.vnet.ibm.com>
:::::: CC: Christian Borntraeger <borntraeger(a)de.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org