From patchwork Wed Jun 20 20:11:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Baron X-Patchwork-Id: 166139 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1756BB6FBE for ; Thu, 21 Jun 2012 06:11:26 +1000 (EST) Received: from localhost ([::1]:41926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShRFL-0003YO-RJ for incoming@patchwork.ozlabs.org; Wed, 20 Jun 2012 16:11:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:32807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShRF9-0003NZ-JH for qemu-devel@nongnu.org; Wed, 20 Jun 2012 16:11:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShRF7-0003EB-VN for qemu-devel@nongnu.org; Wed, 20 Jun 2012 16:11:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShRF7-0003E2-NF for qemu-devel@nongnu.org; Wed, 20 Jun 2012 16:11:09 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q5KKB6YN031018 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 20 Jun 2012 16:11:06 -0400 Received: from redhat.com (dhcp-185-114.bos.redhat.com [10.16.185.114]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q5KKB4iF019689; Wed, 20 Jun 2012 16:11:05 -0400 Date: Wed, 20 Jun 2012 16:11:04 -0400 From: Jason Baron To: anthony@codemonkey.ws, benh@kernel.crashing.org Message-Id: <3221578830f39610aa1957704f8cdf66f692cf2d.1340220655.git.jbaron@redhat.com> In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: mst@redhat.com, jan.kiszka@siemens.com, armbru@redhat.com, qemu-devel@nongnu.org, yamahata@valinux.co.jp, alex.williamson@redhat.com, ddutile@redhat.com, afaerber@suse.de Subject: [Qemu-devel] [PATCH 1/3] iommu: remove extra 'typedef struct DMAContext' X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org There are several instances of 'typedef struct DMAContext DMAContext'. Remove them all except for the one in qemu-common.h. Signed-off-by: Jason Baron --- dma.h | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dma.h b/dma.h index 0d57e50..862373d 100644 --- a/dma.h +++ b/dma.h @@ -15,7 +15,6 @@ #include "block.h" #include "kvm.h" -typedef struct DMAContext DMAContext; typedef struct ScatterGatherEntry ScatterGatherEntry; typedef enum { @@ -65,11 +64,11 @@ typedef void DMAUnmapFunc(DMAContext *dma, DMADirection dir, dma_addr_t access_len); -typedef struct DMAContext { +struct DMAContext { DMATranslateFunc *translate; DMAMapFunc *map; DMAUnmapFunc *unmap; -} DMAContext; +}; static inline void dma_barrier(DMAContext *dma, DMADirection dir) {