From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShWf8-0003aB-Fn for qemu-devel@nongnu.org; Wed, 20 Jun 2012 21:58:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShWf4-0002JN-JS for qemu-devel@nongnu.org; Wed, 20 Jun 2012 21:58:22 -0400 Received: from ozlabs.org ([203.10.76.45]:35888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShWf4-0002Ih-6u for qemu-devel@nongnu.org; Wed, 20 Jun 2012 21:58:18 -0400 Date: Thu, 21 Jun 2012 11:48:04 +1000 From: David Gibson Message-ID: <20120621014804.GE12749@truffala.fritz.box> References: <1340087992-2399-1-git-send-email-benh@kernel.crashing.org> <1340087992-2399-4-git-send-email-benh@kernel.crashing.org> <4FE23DBF.9040706@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FE23DBF.9040706@codemonkey.ws> Subject: Re: [Qemu-devel] [PATCH 03/13] iommu: Add universal DMA helper functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Richard Henderson , Eduard - Gabriel Munteanu , qemu-devel@nongnu.org, "Michael S. Tsirkin" On Wed, Jun 20, 2012 at 04:16:47PM -0500, Anthony Liguori wrote: [snip] > >diff --git a/qemu-common.h b/qemu-common.h > >index 8f87e41..80026af 100644 > >--- a/qemu-common.h > >+++ b/qemu-common.h > >@@ -264,6 +264,7 @@ typedef struct EventNotifier EventNotifier; > > typedef struct VirtIODevice VirtIODevice; > > typedef struct QEMUSGList QEMUSGList; > > typedef struct SHPCDevice SHPCDevice; > >+typedef struct DMAContext DMAContext; > > Please don't put this in qemu-common.h. Stick it in a dma-specific > header. I'm pretty sure I started to hit circular include hell without the forward declaration here. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson