From a348f108842fb928563865c9918642900cd0d477 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 5 Feb 2012 10:19:07 +0000 Subject: Add missing const attributes for MemoryRegionOps Most MemoryRegionOps already had the const attribute. This patch adds it to the remaining ones. Signed-off-by: Stefan Weil Signed-off-by: Blue Swirl --- hw/spapr_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/spapr_pci.c') diff --git a/hw/spapr_pci.c b/hw/spapr_pci.c index cfdd9dd..374dcf8 100644 --- a/hw/spapr_pci.c +++ b/hw/spapr_pci.c @@ -281,7 +281,7 @@ static void spapr_io_write(void *opaque, target_phys_addr_t addr, assert(0); } -static MemoryRegionOps spapr_io_ops = { +static const MemoryRegionOps spapr_io_ops = { .endianness = DEVICE_LITTLE_ENDIAN, .read = spapr_io_read, .write = spapr_io_write -- cgit v1.1