[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 4/9] hw/net: Replace dev->parent_bus by qdev_get_parent_bus(de
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 4/9] hw/net: Replace dev->parent_bus by qdev_get_parent_bus(dev) |
Date: |
Mon, 13 Feb 2023 08:04:18 +0100 |
DeviceState::parent_bus is an internal field and should be
accessed by the qdev_get_parent_bus() helper.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/net/virtio-net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
index 3ae909041a..8bc160ab59 100644
--- a/hw/net/virtio-net.c
+++ b/hw/net/virtio-net.c
@@ -3423,7 +3423,7 @@ static bool failover_replug_primary(VirtIONet *n,
DeviceState *dev,
if (!pdev->partially_hotplugged) {
return true;
}
- primary_bus = dev->parent_bus;
+ primary_bus = qdev_get_parent_bus(dev);
if (!primary_bus) {
error_setg(errp, "virtio_net: couldn't find primary bus");
return false;
--
2.38.1
- [PATCH v2 0/9] hw/qdev: Housekeeping around qdev_get_parent_bus(), Philippe Mathieu-Daudé, 2023/02/13
- [PATCH v2 1/9] hw/qdev: Constify DeviceState* argument of qdev_get_parent_bus(), Philippe Mathieu-Daudé, 2023/02/13
- [PATCH v2 2/9] hw/audio: Replace dev->parent_bus by qdev_get_parent_bus(dev), Philippe Mathieu-Daudé, 2023/02/13
- [PATCH v2 3/9] hw/block: Replace dev->parent_bus by qdev_get_parent_bus(dev), Philippe Mathieu-Daudé, 2023/02/13
- [PATCH v2 4/9] hw/net: Replace dev->parent_bus by qdev_get_parent_bus(dev),
Philippe Mathieu-Daudé <=
- [PATCH v2 5/9] hw/pci: Replace dev->parent_bus by qdev_get_parent_bus(dev), Philippe Mathieu-Daudé, 2023/02/13
- [PATCH v2 6/9] hw/ppc: Replace dev->parent_bus by qdev_get_parent_bus(dev), Philippe Mathieu-Daudé, 2023/02/13
- [PATCH v2 7/9] hw/usb: Replace dev->parent_bus by qdev_get_parent_bus(dev), Philippe Mathieu-Daudé, 2023/02/13
- [PATCH v2 8/9] hw: Use qdev_get_parent_bus() in qdev_get_own_fw_dev_path_from_handler(), Philippe Mathieu-Daudé, 2023/02/13
- [PATCH v2 9/9] qdev-monitor: Use qdev_get_parent_bus() in bus_print_dev(), Philippe Mathieu-Daudé, 2023/02/13
- Re: [PATCH v2 0/9] hw/qdev: Housekeeping around qdev_get_parent_bus(), Michael S. Tsirkin, 2023/02/13