vfio_pci: fix build on 32-bit systems
We cannot cast directly from pointer to uint64. Cc: Alex Williamson <alex.williamson@redhat.com> Cc: Alex Barcelo <abarcelo@ac.upc.edu> Reported-by: Alex Barcelo <abarcelo@ac.upc.edu> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
92e1fb5ed1
commit
0f41dc182c
@ -768,7 +768,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)vaddr,
|
.vaddr = (__u64)(intptr_t)vaddr,
|
||||||
.iova = iova,
|
.iova = iova,
|
||||||
.size = size,
|
.size = size,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user