From: Alex Shi Date: Sun, 4 Mar 2012 05:13:38 +0000 (+0800) Subject: KVM: use correct tlbs dirty type in cmpxchg X-Git-Tag: upstream/snapshot3+hdmi~7836^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bec87d6e34de459a559fc326aa4e56bee4ba7423;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git KVM: use correct tlbs dirty type in cmpxchg Using 'int' type is not suitable for a 'long' object. So, correct it. Signed-off-by: Alex Shi Signed-off-by: Avi Kivity --- diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 94e148e..42b7393 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -203,7 +203,7 @@ static bool make_all_cpus_request(struct kvm *kvm, unsigned int req) void kvm_flush_remote_tlbs(struct kvm *kvm) { - int dirty_count = kvm->tlbs_dirty; + long dirty_count = kvm->tlbs_dirty; smp_mb(); if (make_all_cpus_request(kvm, KVM_REQ_TLB_FLUSH))