ppc/pnv: fix compile breakage on old gcc
PnvChip is defined twice and this can confuse old compilers : CC ppc64-softmmu/hw/ppc/pnv_xscom.o In file included from qemu.git/hw/ppc/pnv.c:29: qemu.git/include/hw/ppc/pnv.h:60: error: redefinition of typedef ‘PnvChip’ qemu.git/include/hw/ppc/pnv_xscom.h:24: note: previous declaration of ‘PnvChip’ was here make[1]: *** [hw/ppc/pnv.o] Error 1 make[1]: *** Waiting for unfinished jobs.... Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
		
							parent
							
								
									8bd9530e13
								
							
						
					
					
						commit
						ec575aa0ae
					
				@ -24,6 +24,7 @@
 | 
				
			|||||||
#include "hw/ppc/ppc.h"
 | 
					#include "hw/ppc/ppc.h"
 | 
				
			||||||
#include "hw/ppc/pnv.h"
 | 
					#include "hw/ppc/pnv.h"
 | 
				
			||||||
#include "hw/ppc/pnv_core.h"
 | 
					#include "hw/ppc/pnv_core.h"
 | 
				
			||||||
 | 
					#include "hw/ppc/pnv_xscom.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void powernv_cpu_reset(void *opaque)
 | 
					static void powernv_cpu_reset(void *opaque)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
@ -23,8 +23,9 @@
 | 
				
			|||||||
#include "qapi/error.h"
 | 
					#include "qapi/error.h"
 | 
				
			||||||
#include "qemu/log.h"
 | 
					#include "qemu/log.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "hw/ppc/pnv_lpc.h"
 | 
					 | 
				
			||||||
#include "hw/ppc/pnv.h"
 | 
					#include "hw/ppc/pnv.h"
 | 
				
			||||||
 | 
					#include "hw/ppc/pnv_lpc.h"
 | 
				
			||||||
 | 
					#include "hw/ppc/pnv_xscom.h"
 | 
				
			||||||
#include "hw/ppc/fdt.h"
 | 
					#include "hw/ppc/fdt.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <libfdt.h>
 | 
					#include <libfdt.h>
 | 
				
			||||||
 | 
				
			|||||||
@ -25,8 +25,8 @@
 | 
				
			|||||||
#include "hw/sysbus.h"
 | 
					#include "hw/sysbus.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "hw/ppc/fdt.h"
 | 
					#include "hw/ppc/fdt.h"
 | 
				
			||||||
#include "hw/ppc/pnv_xscom.h"
 | 
					 | 
				
			||||||
#include "hw/ppc/pnv.h"
 | 
					#include "hw/ppc/pnv.h"
 | 
				
			||||||
 | 
					#include "hw/ppc/pnv_xscom.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <libfdt.h>
 | 
					#include <libfdt.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -21,7 +21,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "hw/boards.h"
 | 
					#include "hw/boards.h"
 | 
				
			||||||
#include "hw/sysbus.h"
 | 
					#include "hw/sysbus.h"
 | 
				
			||||||
#include "hw/ppc/pnv_xscom.h"
 | 
					 | 
				
			||||||
#include "hw/ppc/pnv_lpc.h"
 | 
					#include "hw/ppc/pnv_lpc.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define TYPE_PNV_CHIP "powernv-chip"
 | 
					#define TYPE_PNV_CHIP "powernv-chip"
 | 
				
			||||||
 | 
				
			|||||||
@ -21,8 +21,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "qom/object.h"
 | 
					#include "qom/object.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typedef struct PnvChip PnvChip;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
typedef struct PnvXScomInterface {
 | 
					typedef struct PnvXScomInterface {
 | 
				
			||||||
    Object parent;
 | 
					    Object parent;
 | 
				
			||||||
} PnvXScomInterface;
 | 
					} PnvXScomInterface;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user