Patchwork [1/3] cpu-common.h: Remove unnecessary guard on including targphys.h

login
register
mail settings
Submitter Stefan Hajnoczi
Date July 2, 2012, 9:36 a.m.
Message ID <1341221796-14673-2-git-send-email-stefanha@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/168526/
State New
Headers show

Comments

Stefan Hajnoczi - July 2, 2012, 9:36 a.m.
From: Peter Maydell <peter.maydell@linaro.org>

There's no need to make the include of targphys.h conditional
on whether TARGET_PHYS_ADDR_BITS is defined, because targphys.h
itself checks that and does nothing if it isn't.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 cpu-common.h |    2 --
 1 file changed, 2 deletions(-)

Patch

diff --git a/cpu-common.h b/cpu-common.h
index 1fe3280..321037f 100644
--- a/cpu-common.h
+++ b/cpu-common.h
@@ -3,9 +3,7 @@ 
 
 /* CPU interfaces that are target independent.  */
 
-#ifdef TARGET_PHYS_ADDR_BITS
 #include "targphys.h"
-#endif
 
 #ifndef NEED_CPU_H
 #include "poison.h"