MIPS: KVM: Fix ptr->int cast via KVM_GUEST_KSEGX()
authorJames Hogan <james.hogan@imgtec.com>
Fri, 8 Jul 2016 10:53:29 +0000 (11:53 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Aug 2016 16:42:26 +0000 (18:42 +0200)
commit8296963e6e8c656c4d91dfa7245e49672aa9675e
tree2318d0ae22622bfa9b5ae81960c4fc7b0859edfa
parent172e02d1474d5c37a8728ccdfdc731c118366144
MIPS: KVM: Fix ptr->int cast via KVM_GUEST_KSEGX()

kvm_mips_trans_replace() passes a pointer to KVM_GUEST_KSEGX(). This
breaks on 64-bit builds due to the cast of that 64-bit pointer to a
different sized 32-bit int. Cast the pointer argument to an unsigned
long to work around the warning.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/kvm/dyntrans.c