diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2012-10-08 08:45:30 -0600 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2012-10-08 08:45:30 -0600 |
commit | 5976cdd58b657692e8c1af5310d55a60aecc9089 (patch) | |
tree | 15d16b25dfdf87e416aa94d055f568adacf4b2e0 /hw/vfio_pci.c | |
parent | e43b9a5a4fb2b501fbbec411faff899b74a2d451 (diff) | |
download | qemu-5976cdd58b657692e8c1af5310d55a60aecc9089.zip qemu-5976cdd58b657692e8c1af5310d55a60aecc9089.tar.gz qemu-5976cdd58b657692e8c1af5310d55a60aecc9089.tar.bz2 |
vfio-pci: Use uintptr_t for void* cast
We don't seem to run into any sign extension problems, but
unsigned looks more correct.
Signed-off-by: Alex williamson <alex.williamson@redhat.com>
Diffstat (limited to 'hw/vfio_pci.c')
-rw-r--r-- | hw/vfio_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vfio_pci.c b/hw/vfio_pci.c index d62ddd1..0ca77cf 100644 --- a/hw/vfio_pci.c +++ b/hw/vfio_pci.c @@ -907,7 +907,7 @@ static int vfio_dma_map(VFIOContainer *container, target_phys_addr_t iova, struct vfio_iommu_type1_dma_map map = { .argsz = sizeof(map), .flags = VFIO_DMA_MAP_FLAG_READ, - .vaddr = (__u64)(intptr_t)vaddr, + .vaddr = (__u64)(uintptr_t)vaddr, .iova = iova, .size = size, }; |