Skip to contentSkip to conversation

trivial: Remove unneeded ifndef in memory.h

PATCH Applied Juan Quintela 4 participants 4 messages May 18, 2017 – May 23, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trivial: Remove unneeded ifndef in memory.h

All the file is surounded already by #ifndef CONFIG_USER_ONLY.

---
 include/exec/memory.h | 2 --
 1 file changed, 2 deletions(-)
include/exec/memory.h +0 -2
index 99e0f54..6b5b953 100644
@@ -17,9 +17,7 @@
 #ifndef CONFIG_USER_ONLY
 
 #include "exec/cpu-common.h"
-#ifndef CONFIG_USER_ONLY
 #include "exec/hwaddr.h"
-#endif
 #include "exec/memattrs.h"
 #include "exec/ramlist.h"
 #include "qemu/queue.h"
Signature · 1 line
2.9.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · * Juan Quintela ([email protected]) wrote:

All the file is surounded already by #ifndef CONFIG_USER_ONLY.

Ah yes, the patch that added the inner ifndef added it to every use of exec/hwaddr.h.

Quoted 21 lines
---
 include/exec/memory.h | 2 --
 1 file changed, 2 deletions(-)
include/exec/memory.h +0 -2
index 99e0f54..6b5b953 100644
@@ -17,9 +17,7 @@
 #ifndef CONFIG_USER_ONLY
 
 #include "exec/cpu-common.h"
-#ifndef CONFIG_USER_ONLY
 #include "exec/hwaddr.h"
-#endif
 #include "exec/memattrs.h"
 #include "exec/ramlist.h"
 #include "qemu/queue.h"
Signature · 1 line
2.9.3

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

Reviewed-by on v1 1/1
#2 lore raw
In reply to Juan Quintela
Quoted 13 lines · Juan Quintela

All the file is surounded already by #ifndef CONFIG_USER_ONLY.

---
 include/exec/memory.h | 2 --
 1 file changed, 2 deletions(-)
include/exec/memory.h +0 -0
index 99e0f54..6b5b953 100644

include/exec/memory.h line 23

Quoted 9 lines
include/exec/memory.h +0 -2
@@ -17,9 +17,7 @@
 #ifndef CONFIG_USER_ONLY
 
 #include "exec/cpu-common.h"
-#ifndef CONFIG_USER_ONLY
 #include "exec/hwaddr.h"
-#endif
 #include "exec/memattrs.h"
 #include "exec/ramlist.h"
 #include "qemu/queue.h"