KVM: MMU: fix pointer cast
authorFrederik Deweerdt <frederik.deweerdt@xprog.eu>
Fri, 9 Oct 2009 11:42:56 +0000 (11:42 +0000)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 16 Oct 2009 15:30:26 +0000 (12:30 -0300)
commit8a8365c560b8b631e0a2d1ac032fbca66a9645bc
treeca4f74170aade039440b38cfb0fe6d78e0ebeed4
parentace1546487a0fe4634e3251067f8a32cb2cdc099
KVM: MMU: fix pointer cast

On a 32 bits compile, commit 3da0dd433dc399a8c0124d0614d82a09b6a49bce
introduced the following warnings:

arch/x86/kvm/mmu.c: In function ‘kvm_set_pte_rmapp’:
arch/x86/kvm/mmu.c:770: warning: cast to pointer from integer of different size
arch/x86/kvm/mmu.c: In function ‘kvm_set_spte_hva’:
arch/x86/kvm/mmu.c:849: warning: cast from pointer to integer of different size

The following patch uses 'unsigned long' instead of u64 to match the
pointer size on both arches.

Signed-off-by: Frederik Deweerdt <frederik.deweerdt@xprog.eu>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/mmu.c