From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIl40-0005Sd-Sj for qemu-devel@nongnu.org; Mon, 01 Oct 2012 14:50:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIl3w-0005Xl-TY for qemu-devel@nongnu.org; Mon, 01 Oct 2012 14:49:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIl3w-0005XY-KG for qemu-devel@nongnu.org; Mon, 01 Oct 2012 14:49:52 -0400 Message-ID: <1349117389.28860.299.camel@bling.home> From: Alex Williamson Date: Mon, 01 Oct 2012 12:49:49 -0600 In-Reply-To: <1349116911-18550-1-git-send-email-aliguori@us.ibm.com> References: <1349116911-18550-1-git-send-email-aliguori@us.ibm.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] vfio_pci: fix build on 32-bit systems List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Alex Barcelo , qemu-devel@nongnu.org On Mon, 2012-10-01 at 13:41 -0500, Anthony Liguori wrote: > We cannot cast directly from pointer to uint64. > > Cc: Alex Williamson > Cc: Alex Barcelo > Reported-by: Alex Barcelo > Signed-off-by: Anthony Liguori > --- > 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 a24558a..a1eeced 100644 > --- a/hw/vfio_pci.c > +++ b/hw/vfio_pci.c > @@ -768,7 +768,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)vaddr, > + .vaddr = (__u64)(intptr_t)vaddr, > .iova = iova, > .size = size, > }; Thanks Anthony Acked-by: Alex Williamson