Re: [PATCH 3/3] memory: Make memory_region_to_absolute_addr() take a const MemoryRegion

2021-03-11 Thread Philippe Mathieu-Daudé
Cc'ing qemu-trivial@ for this single patch. On 3/6/21 12:54 AM, Philippe Mathieu-Daudé wrote: > There is no reason to not have memory_region_to_absolute_addr() > work with a const MemoryRegion. Else we get: > > softmmu/memory.c: error: passing argument 1 of > ‘memory_region_to_absolute_addr’ dis

[PATCH 3/3] memory: Make memory_region_to_absolute_addr() take a const MemoryRegion

2021-03-05 Thread Philippe Mathieu-Daudé
There is no reason to not have memory_region_to_absolute_addr() work with a const MemoryRegion. Else we get: softmmu/memory.c: error: passing argument 1 of ‘memory_region_to_absolute_addr’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] | myaddr = mem