• F
    KVM: MMU: fix pointer cast · 8a8365c5
    Frederik Deweerdt 提交于
    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: NFrederik Deweerdt <frederik.deweerdt@xprog.eu>
    Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
    8a8365c5
mmu.c 80.6 KB