Skip to contentSkip to conversation

target/ppc/cpu.h: Remove duplicate includes

PATCH Applied BALATON Zoltan 3 participants 3 messages Feb 12, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/ppc/cpu.h: Remove duplicate includes

Commit 74433bf083b added some includes but added them twice. Since these are guarded against multiple inclusion including them once is enough.

---
 target/ppc/cpu.h | 2 --
 1 file changed, 2 deletions(-)
target/ppc/cpu.h +0 -2
index 3a1eb76004..07dd2b4da7 100644
@@ -23,8 +23,6 @@
 #include "qemu/int128.h"
 #include "exec/cpu-defs.h"
 #include "cpu-qom.h"
-#include "exec/cpu-defs.h"
-#include "cpu-qom.h"
 
 /* #define PPC_EMULATE_32BITS_HYPV */
 
Signature · 1 line
2.21.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · BALATON Zoltan

Commit 74433bf083b added some includes but added them twice. Since these are guarded against multiple inclusion including them once is enough.

---
  target/ppc/cpu.h | 2 --
  1 file changed, 2 deletions(-)
target/ppc/cpu.h +0 -0
index 3a1eb76004..07dd2b4da7 100644

target/ppc/cpu.h line 27

Quoted 7 lines
target/ppc/cpu.h +0 -2
@@ -23,8 +23,6 @@
  #include "qemu/int128.h"
  #include "exec/cpu-defs.h"
  #include "cpu-qom.h"
-#include "exec/cpu-defs.h"
-#include "cpu-qom.h"
 
  /* #define PPC_EMULATE_32BITS_HYPV */
Applied
#2 lore raw
In reply to BALATON Zoltan
Quoted 5 lines · BALATON Zoltan

Commit 74433bf083b added some includes but added them twice. Since these are guarded against multiple inclusion including them once is enough.

Applied to ppc-for-5.0, thanks.

Quoted 17 lines
---
 target/ppc/cpu.h | 2 --
 1 file changed, 2 deletions(-)
target/ppc/cpu.h +0 -2
index 3a1eb76004..07dd2b4da7 100644
@@ -23,8 +23,6 @@
 #include "qemu/int128.h"
 #include "exec/cpu-defs.h"
 #include "cpu-qom.h"
-#include "exec/cpu-defs.h"
-#include "cpu-qom.h"
 
 /* #define PPC_EMULATE_32BITS_HYPV */
 
Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson