Trivial MemoryRegionOps patches
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.
PATCH 1/2 ppc: Add missing 'static' to spin_rw_ops
spin_rw_ops is only used in hw/ppce500_spin.c.
--- hw/ppce500_spin.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
hw/ppce500_spin.c +1 -1
@@ -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
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_opsis only used inhw/ppce500_spin.c.Cc Alexander Graf <[email protected]>Signed-off-by Stefan Weil <[email protected]>
/-F
Quoted 17 lines
--- hw/ppce500_spin.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)hw/ppce500_spin.c +1
-1@@ -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
PATCH 2/2 sh7750: Remove redundant 'struct' from MemoryRegionOps
In reply to Stefan WeilThe '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
@@ -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
@@ -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
Stefan Hajnoczi
AppliedQuoted 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