[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 11/22] hw/sysbus: Remove unused sysbus_mmio_unmap
From: |
Michael Tokarev |
Subject: |
[PULL 11/22] hw/sysbus: Remove unused sysbus_mmio_unmap |
Date: |
Fri, 20 Sep 2024 10:41:23 +0300 |
From: "Dr. David Alan Gilbert" <dave@treblig.org>
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 <dave@treblig.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
hw/core/sysbus.c | 10 ----------
include/hw/sysbus.h | 1 -
2 files changed, 11 deletions(-)
diff --git a/hw/core/sysbus.c b/hw/core/sysbus.c
index ad34fb7344..e64d99c8ed 100644
--- a/hw/core/sysbus.c
+++ b/hw/core/sysbus.c
@@ -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);
diff --git a/include/hw/sysbus.h b/include/hw/sysbus.h
index 3cb29a480e..c9b1e0e90e 100644
--- a/include/hw/sysbus.h
+++ b/include/hw/sysbus.h
@@ -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);
--
2.39.5
- [PULL 01/22] mark <zlib.h> with for-crc32 in a consistent manner, (continued)
- [PULL 01/22] mark <zlib.h> with for-crc32 in a consistent manner, Michael Tokarev, 2024/09/20
- [PULL 03/22] linux-user/syscall.c: eliminate other explicit LFS usages, Michael Tokarev, 2024/09/20
- [PULL 02/22] linux-user/syscall.c: drop 64 suffix from flock64 &Co, Michael Tokarev, 2024/09/20
- [PULL 05/22] hw/mips/jazz: fix typo in in-built NIC alias, Michael Tokarev, 2024/09/20
- [PULL 04/22] ppc: fix incorrect spelling of PowerMac, Michael Tokarev, 2024/09/20
- [PULL 06/22] hw/loongarch/virt: Add description for virt machine type, Michael Tokarev, 2024/09/20
- [PULL 07/22] tests/unit: Really build pbkdf test on macOS, Michael Tokarev, 2024/09/20
- [PULL 08/22] hw/virtio/Kconfig: Include vhost-user-scmi only on arm targets, Michael Tokarev, 2024/09/20
- [PULL 09/22] hw/display: Fix mirrored output in dm163, Michael Tokarev, 2024/09/20
- [PULL 10/22] envlist: Remove unused envlist_parse, Michael Tokarev, 2024/09/20
- [PULL 11/22] hw/sysbus: Remove unused sysbus_mmio_unmap,
Michael Tokarev <=
- [PULL 13/22] tests/qemu-iotests/testenv: Use the "virt" machine for or1k, Michael Tokarev, 2024/09/20
- [PULL 12/22] util/cutils: Remove unused qemu_get_exec_dir, Michael Tokarev, 2024/09/20
- [PULL 14/22] tests/qemu-iotests/testenv: Use the "r2d" machine for sh4/sh4eb, Michael Tokarev, 2024/09/20
- [PULL 15/22] tests/functional: Put the or1k_sim test into the slow category, Michael Tokarev, 2024/09/20
- [PULL 16/22] target/hexagon: Rename macros.inc -> macros.h.inc, Michael Tokarev, 2024/09/20
- [PULL 17/22] tests/bench: Rename test_akcipher_keys.inc -> test_akcipher_keys.c.inc, Michael Tokarev, 2024/09/20
- [PULL 18/22] tests/functional: Correct typo in test_netdev_ethtool.py SPDX tag, Michael Tokarev, 2024/09/20
- [PULL 19/22] license: Simplify GPL-2.0-or-later license descriptions, Michael Tokarev, 2024/09/20
- [PULL 21/22] license: Update deprecated SPDX tag GPL-2.0+ to GPL-2.0-or-later, Michael Tokarev, 2024/09/20
- [PULL 20/22] license: Update deprecated SPDX tag LGPL-2.0+ to LGPL-2.0-or-later, Michael Tokarev, 2024/09/20