On Fri, Jan 11, 2019 at 09:17:51AM +0100, Thomas Huth wrote: > When compiling the ppc code with clang and -std=gnu99, there are a > couple of warnings/errors like this one: > > CC ppc64-softmmu/hw/intc/xics.o > In file included from hw/intc/xics.c:35: > include/hw/ppc/xics.h:43:25: error: redefinition of typedef 'ICPState' is a > C11 feature > [-Werror,-Wtypedef-redefinition] > typedef struct ICPState ICPState; > ^ > target/ppc/cpu.h:1181:25: note: previous definition is here > typedef struct ICPState ICPState; > ^ > Work around the problems by including the proper headers instead. > > Signed-off-by: Thomas Huth <th...@redhat.com> > --- > include/hw/ppc/spapr.h | 5 +++-- > include/hw/ppc/spapr_xive.h | 2 -- > target/ppc/cpu.h | 13 +++++++++---- > 3 files changed, 12 insertions(+), 8 deletions(-)
Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|