[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/3] iommu: remove extra 'typedef struct DMAContext'
From: |
Jason Baron |
Subject: |
[Qemu-devel] [PATCH 1/3] iommu: remove extra 'typedef struct DMAContext' |
Date: |
Wed, 20 Jun 2012 16:11:04 -0400 |
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 <address@hidden>
---
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)
{
--
1.7.1