hw/sysbus: Remove unused sysbus_mmio_unmap
PATCH 1/1 hw/sysbus: Remove unused sysbus_mmio_unmap
From: "Dr. David Alan Gilbert" <[email protected]>
The last use of sysbus_mmio_unmap was removed by
981b1c6266 ("spapr/xive: rework the mapping the KVM memory regions")
Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
--- hw/core/sysbus.c | 10 ---------- include/hw/sysbus.h | 1 - 2 files changed, 11 deletions(-)
hw/core/sysbus.c +0 -10
@@ -154,16 +154,6 @@ static void sysbus_mmio_map_common(SysBusDevice *dev, int n, hwaddr addr, } } -void sysbus_mmio_unmap (SysBusDevice *dev,int n) -{ -assert (n >=0 && n < dev->num_mmio); - -if (dev->mmio[n].addr != (hwaddr)-1 ) { -memory_region_del_subregion (get_system_memory (), dev->mmio[n].memory); - dev->mmio[n].addr = (hwaddr)-1 ; - } -} -void sysbus_mmio_map (SysBusDevice *dev,int n,hwaddr addr) {sysbus_mmio_map_common (dev, n, addr, false,0 );
include/hw/sysbus.h +0 -1
@@ -82,7 +82,6 @@ qemu_irq sysbus_get_connected_irq(SysBusDevice *dev, int n);void sysbus_mmio_map (SysBusDevice *dev,int n,hwaddr addr);void sysbus_mmio_map_overlap (SysBusDevice *dev,int n,hwaddr addr,int priority); -void sysbus_mmio_unmap (SysBusDevice *dev,int n);bool sysbus_realize (SysBusDevice *dev,Error **errp);bool sysbus_realize_and_unref (SysBusDevice *dev,Error **errp);
Signature · 1 line
2.46.0
Quoted 5 lines · On Wed, Sep 18, 2024 at 01:27:53PM +0100, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
The last use of
sysbus_mmio_unmapwas removed by
981b1c6266("spapr/xive: rework the mapping the KVM memory regions")
Quoted 7 lines
Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>--- hw/core/sysbus.c | 10 ---------- include/hw/sysbus.h | 1 - 2 files changed, 11 deletions(-)
Reviewed-by Daniel P. Berrangé <[email protected]>
Quoted 37 lines
hw/core/sysbus.c +0
-10@@ -154,16 +154,6 @@ static void sysbus_mmio_map_common(SysBusDevice *dev, int n, hwaddr addr, } } -void sysbus_mmio_unmap (SysBusDevice *dev,int n) -{ -assert (n >=0 && n < dev->num_mmio); - -if (dev->mmio[n].addr != (hwaddr)-1 ) { -memory_region_del_subregion (get_system_memory (), dev->mmio[n].memory); - dev->mmio[n].addr = (hwaddr)-1 ; - } -} -void sysbus_mmio_map (SysBusDevice *dev,int n,hwaddr addr) {sysbus_mmio_map_common (dev, n, addr, false,0 );include/hw/sysbus.h +0
-1@@ -82,7 +82,6 @@ qemu_irq sysbus_get_connected_irq(SysBusDevice *dev, int n);void sysbus_mmio_map (SysBusDevice *dev,int n,hwaddr addr);void sysbus_mmio_map_overlap (SysBusDevice *dev,int n,hwaddr addr,int priority); -void sysbus_mmio_unmap (SysBusDevice *dev,int n);bool sysbus_realize (SysBusDevice *dev,Error **errp);bool sysbus_realize_and_unref (SysBusDevice *dev,Error **errp);Signature · 1 line
2.46.0
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|