From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIleL-00006W-HN for qemu-devel@nongnu.org; Mon, 01 Oct 2012 15:27:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIleJ-00032J-At for qemu-devel@nongnu.org; Mon, 01 Oct 2012 15:27:29 -0400 Received: from e33.co.us.ibm.com ([32.97.110.151]:54689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIleJ-00031z-4W for qemu-devel@nongnu.org; Mon, 01 Oct 2012 15:27:27 -0400 Received: from /spool/local by e33.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 1 Oct 2012 13:27:24 -0600 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 514361FF004A for ; Mon, 1 Oct 2012 13:27:16 -0600 (MDT) Received: from d03av05.boulder.ibm.com (d03av05.boulder.ibm.com [9.17.195.85]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q91JRKBx138234 for ; Mon, 1 Oct 2012 13:27:20 -0600 Received: from d03av05.boulder.ibm.com (loopback [127.0.0.1]) by d03av05.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q91JRJYh009603 for ; Mon, 1 Oct 2012 13:27:19 -0600 From: Anthony Liguori In-Reply-To: <1349116911-18550-1-git-send-email-aliguori@us.ibm.com> References: <1349116911-18550-1-git-send-email-aliguori@us.ibm.com> Date: Mon, 01 Oct 2012 14:27:15 -0500 Message-ID: <87txue6lik.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: qemu-devel@nongnu.org Cc: Alex Williamson , Alex Barcelo Anthony Liguori writes: > We cannot cast directly from pointer to uint64. > > Cc: Alex Williamson > Cc: Alex Barcelo > Reported-by: Alex Barcelo > Signed-off-by: Anthony Liguori Applied. Regards, 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, > }; > -- > 1.7.5.4