mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
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>
This commit is contained in:
parent
e43b9a5a4f
commit
5976cdd58b
1 changed files with 1 additions and 1 deletions
|
@ -907,7 +907,7 @@ static int vfio_dma_map(VFIOContainer *container, target_phys_addr_t iova,
|
||||||
struct vfio_iommu_type1_dma_map map = {
|
struct vfio_iommu_type1_dma_map map = {
|
||||||
.argsz = sizeof(map),
|
.argsz = sizeof(map),
|
||||||
.flags = VFIO_DMA_MAP_FLAG_READ,
|
.flags = VFIO_DMA_MAP_FLAG_READ,
|
||||||
.vaddr = (__u64)(intptr_t)vaddr,
|
.vaddr = (__u64)(uintptr_t)vaddr,
|
||||||
.iova = iova,
|
.iova = iova,
|
||||||
.size = size,
|
.size = size,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue