KVM: let declaration of kvm_get_running_vcpus match implementation
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 28 Feb 2020 08:49:41 +0000 (09:49 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 28 Feb 2020 09:33:57 +0000 (10:33 +0100)
commitfcd07f9adc7dacc2532695cf9dd2284d49e716ff
treef3dfa29c35eff077b102af6390eeb6d9a889f6b7
parent7943f4acea3caf0b6d5b6cdfce7d5a2b4a9aa608
KVM: let declaration of kvm_get_running_vcpus match implementation

Sparse notices that declaration and implementation do not match:
arch/s390/kvm/../../../virt/kvm/kvm_main.c:4435:17: warning: incorrect type in return expression (different address spaces)
arch/s390/kvm/../../../virt/kvm/kvm_main.c:4435:17:    expected struct kvm_vcpu [noderef] <asn:3> **
arch/s390/kvm/../../../virt/kvm/kvm_main.c:4435:17:    got struct kvm_vcpu *[noderef] <asn:3> *

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h