Re: [PATCH] kvm tools: Fix type mismatches on GCC 4.4 on 32-bit systems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 13, 2011 at 11:19 AM, Ingo Molnar <mingo@xxxxxxx> wrote:
> @@ -162,7 +162,7 @@ static void kvm_register_mem_slot(struct kvm *kvm, u32 slot, u64 guest_phys, u64
>                .slot                   = slot,
>                .guest_phys_addr        = guest_phys,
>                .memory_size            = size,
> -               .userspace_addr         = (u64)userspace_addr,
> +               .userspace_addr         = (u64)(long)userspace_addr,
>        };

Isn't

+               .userspace_addr         = (unsigned long)userspace_addr,

the right thing to do here?
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux