cpu-common.h: remove pointless ifdef guards
cover cpu-common.h: remove pointless ifdef guards
These patches remove a couple of pointless ifdef guards in cpu-common.h that I happened to notice.
Peter Maydell (2):
cpu-common.h: Remove unnecessary guard on including targphys.h cpu-common.h: Remove a pointless ifndef CONFIG_USER_ONLY
cpu-common.h | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
PATCH 1/2 cpu-common.h: Remove unnecessary guard on including targphys.h
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.
--- cpu-common.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
cpu-common.h +0 -2
@@ -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"
Signature · 1 line
1.7.1
Re: [Qemu-devel] [PATCH 1/2] cpu-common.h: Remove unnecessary guard on including targphys.h
Am 22.06.2012 13:30, schrieb Peter Maydell:
Quoted 5 lines
There's no need to make the include of
targphys.hconditional on whetherTARGET_PHYS_ADDR_BITSis defined, becausetargphys.hitself checks that and does nothing if it isn't.Signed-off-by Peter Maydell <[email protected]>
/-F
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
PATCH 2/2 cpu-common.h: Remove a pointless ifndef CONFIG_USER_ONLY
In reply to Peter MaydellRemove an ifndef CONFIG_USER_ONLY guard that was pointless because it is already inside an if !defined(CONFIG_USER_ONLY).
--- cpu-common.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
cpu-common.h +0 -2
@@ -69,9 +69,7 @@ void cpu_physical_memory_unmap(void *buffer, target_phys_addr_t len,void *cpu_register_map_client (void *opaque,void (*callback)(void *opaque));void cpu_unregister_map_client (void *cookie); -#ifndef CONFIG_USER_ONLY bool cpu_physical_memory_is_io (target_phys_addr_t phys_addr); -#endif /* Coalesced MMIO regions are areas where write operations can be reordered. * This usually implies that write operations are side-effect free. This allows
Signature · 1 line
1.7.1
Re: [Qemu-devel] [PATCH 2/2] cpu-common.h: Remove a pointless ifndef CONFIG_USER_ONLY
Am 22.06.2012 13:30, schrieb Peter Maydell:
Quoted 13 lines
Remove an ifndef
CONFIG_USER_ONLYguard that was pointless because it is already inside an if !defined(CONFIG_USER_ONLY).Signed-off-by Peter Maydell <[email protected]>--- cpu-common.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)cpu-common.h +0
-0
cpu-common.h void cpu_physical_memory_unmap(void *buffer, target_phys_addr_t len, · line 75
Quoted 9 lines
cpu-common.h +0
-2@@ -69,9 +69,7 @@ void cpu_physical_memory_unmap(void *buffer, target_phys_addr_t len,void *cpu_register_map_client (void *opaque,void (*callback)(void *opaque));void cpu_unregister_map_client (void *cookie); -#ifndef CONFIG_USER_ONLY bool cpu_physical_memory_is_io (target_phys_addr_t phys_addr); -#endif /* Coalesced MMIO regions are areas where write operations can be reordered. * This usually implies that write operations are side-effect free. This allows
Spotted that yesterday myself and was planning to send a patch. :)
Thanks,
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Stefan Hajnoczi
AppliedQuoted 11 lines · Peter Maydell
These patches remove a couple of pointless ifdef guards in
cpu-common.hthat I happened to notice.Peter Maydell (2):
cpu-common.h: Remove unnecessary guard on includingtargphys.hcpu-common.h: Remove a pointless ifndefCONFIG_USER_ONLYcpu-common.h | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
Stefan