]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
cuda.h: Fix multiple typedef
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 16 Feb 2018 17:31:11 +0000 (17:31 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 16 Feb 2018 18:38:21 +0000 (18:38 +0000)
RHEL6's compilers don't like the repeated typedef.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
include/hw/misc/macio/cuda.h

index 6afbdd13ee944cc03a74db44de0cead5e4d37a2f..494b7095796e4a007268dd62f7563a1721c49da0 100644 (file)
@@ -93,12 +93,12 @@ typedef struct CUDAState {
 } CUDAState;
 
 /* MOS6522 CUDA */
-typedef struct MOS6522CUDAState {
+struct MOS6522CUDAState {
     /*< private >*/
     MOS6522State parent_obj;
 
     CUDAState *cuda;
-} MOS6522CUDAState;
+};
 
 #define TYPE_MOS6522_CUDA "mos6522-cuda"
 #define MOS6522_CUDA(obj) OBJECT_CHECK(MOS6522CUDAState, (obj), \