Skip to contentSkip to conversation

Trivial MemoryRegionOps patches

PATCH Applied Stefan Weil 3 participants 5 messages Feb 25, 2012 – Mar 5, 2012

lore
Share & tools
lore
#0 lore raw

cover Trivial MemoryRegionOps patches

Please apply http://patchwork.ozlabs.org/patch/139660/ to the qemu-trivial patch queue. Here are two additional trivial patches which also touch MemoryRegionOps and make the code more uniform.

[PATCH 1/2] ppc: Add missing 'static' to spin_rw_ops [PATCH 2/2] sh7750: Remove redundant 'struct' from MemoryRegionOps

Regards,

Stefan W.

#1 lore raw

PATCH 1/2 ppc: Add missing 'static' to spin_rw_ops

spin_rw_ops is only used in hw/ppce500_spin.c.

Cc Alexander Graf <[email protected]>
---
 hw/ppce500_spin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/ppce500_spin.c +1 -1
index 6b8a189..6ed676b 100644
@@ -182,7 +182,7 @@ static uint64_t spin_read(void *opaque, target_phys_addr_t addr, unsigned len)
     }
 }
 
-const MemoryRegionOps spin_rw_ops = {
+static const MemoryRegionOps spin_rw_ops = {
     .read = spin_read,
     .write = spin_write,
     .endianness = DEVICE_BIG_ENDIAN,
Signature · 1 line
1.7.9
Acked-by on v1 1/2
#2 lore raw

Re: [Qemu-devel] [PATCH 1/2] ppc: Add missing 'static' to spin_rw_ops

Am 25.02.2012 13:37, schrieb Stefan Weil:

Quoted 4 lines

spin_rw_ops is only used in hw/ppce500_spin.c.

Cc Alexander Graf <[email protected]>

/-F

Quoted 17 lines
---
 hw/ppce500_spin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/ppce500_spin.c +1 -1
index 6b8a189..6ed676b 100644
@@ -182,7 +182,7 @@ static uint64_t spin_read(void *opaque, target_phys_addr_t addr, unsigned len)
     }
 }
 
-const MemoryRegionOps spin_rw_ops = {
+static const MemoryRegionOps spin_rw_ops = {
     .read = spin_read,
     .write = spin_write,
     .endianness = DEVICE_BIG_ENDIAN,
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
#3 lore raw

PATCH 2/2 sh7750: Remove redundant 'struct' from MemoryRegionOps

In reply to Stefan Weil

The 'struct' is not needed, and all other MemoryRegionOps don't use it.

---
 hw/sh7750.c  |    2 +-
 hw/sh_intc.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
hw/sh7750.c +1 -1
index 4f4d8e7..e712928 100644
@@ -712,7 +712,7 @@ static void sh7750_mmct_write(void *opaque, target_phys_addr_t addr,
     }
 }
 
-static const struct MemoryRegionOps sh7750_mmct_ops = {
+static const MemoryRegionOps sh7750_mmct_ops = {
     .read = sh7750_mmct_read,
     .write = sh7750_mmct_write,
     .endianness = DEVICE_NATIVE_ENDIAN,
hw/sh_intc.c +1 -1
index b24ec77..7d31ced 100644
@@ -283,7 +283,7 @@ static void sh_intc_write(void *opaque, target_phys_addr_t offset,
 #endif
 }
 
-static const struct MemoryRegionOps sh_intc_ops = {
+static const MemoryRegionOps sh_intc_ops = {
     .read = sh_intc_read,
     .write = sh_intc_write,
     .endianness = DEVICE_NATIVE_ENDIAN,
Signature · 1 line
1.7.9
#4 lore raw
In reply to Stefan Weil
Quoted 6 lines · Stefan Weil

Please apply http://patchwork.ozlabs.org/patch/139660/ to the qemu-trivial patch queue. Here are two additional trivial patches which also touch MemoryRegionOps and make the code more uniform.

[PATCH 1/2] ppc: Add missing 'static' to spin_rw_ops [PATCH 2/2] sh7750: Remove redundant 'struct' from MemoryRegionOps

Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches

Stefan