Skip to content
Commit 8a8365c5 authored by Frederik Deweerdt's avatar Frederik Deweerdt Committed by Marcelo Tosatti
Browse files

KVM: MMU: fix pointer cast

On a 32 bits compile, commit 3da0dd43


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: default avatarFrederik Deweerdt <frederik.deweerdt@xprog.eu>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent ace15464
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment