dimm: Correct type of MemoryHotplugState->base
commitadcb4ee660cf579f003e9d4afd61b608259091c6
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 21 Jan 2016 01:37:51 +0000 (21 12:37 +1100)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 6 Feb 2016 18:44:10 +0000 (6 20:44 +0200)
treee3daef631a060a064b01c81cdc9a20e1ef9366e3
parentae12374951f07157f7a52c8d848b90f8eec722fb
dimm: Correct type of MemoryHotplugState->base

The 'base' field of MemoryHotplugState is ram_addr_t, which indicates that
it exists in the abstract address space of RAM regions.

However, the actual usage of this field indicates that it is a concrete
physical address (it's passed as an offset to memory_region_add_subgregion
for example).

So, correct its type to 'hwaddr'.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
include/hw/mem/pc-dimm.h