Message ID | 3221578830f39610aa1957704f8cdf66f692cf2d.1340220655.git.jbaron@redhat.com |
---|---|
State | New |
Headers | show |
On Wed, 2012-06-20 at 16:11 -0400, Jason Baron wrote: > There are several instances of 'typedef struct DMAContext DMAContext'. Remove them > all except for the one in qemu-common.h. Actually, the other way around :-) I'm removing the one in qemu-common.h in favor of the one in dma.h (at Anthony's request). I'll have a new series soon... Cheers, Ben. > Signed-off-by: Jason Baron <jbaron@redhat.com> > --- > 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) > {
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) {
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 <jbaron@redhat.com> --- dma.h | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)