Skip to content

Commit fcd07f9

Browse files
borntraegerbonzini
authored andcommitted
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 <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 7943f4a commit fcd07f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/kvm_host.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,7 @@ static inline void kvm_vcpu_set_dy_eligible(struct kvm_vcpu *vcpu, bool val)
13441344
#endif /* CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT */
13451345

13461346
struct kvm_vcpu *kvm_get_running_vcpu(void);
1347-
struct kvm_vcpu __percpu **kvm_get_running_vcpus(void);
1347+
struct kvm_vcpu * __percpu *kvm_get_running_vcpus(void);
13481348

13491349
#ifdef CONFIG_HAVE_KVM_IRQ_BYPASS
13501350
bool kvm_arch_has_irq_bypass(void);

0 commit comments

Comments
 (0)