[PATCH 0/4] hw/qdev: Housekeeping around qdev_get_parent_bus()

Philippe Mathieu-Daudé posted 4 patches 1 year, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230212224730.51438-1-philmd@linaro.org
Maintainers: Gerd Hoffmann <kraxel@redhat.com>, John Snow <jsnow@redhat.com>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, Laurent Vivier <laurent@vivier.eu>, Paolo Bonzini <pbonzini@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Eduardo Habkost <eduardo@habkost.net>, "Michael S. Tsirkin" <mst@redhat.com>, Jason Wang <jasowang@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Fam Zheng <fam@euphon.net>, "Gonglei (Arei)" <arei.gonglei@huawei.com>
There is a newer version of this series
hw/audio/intel-hda.c                |  2 +-
hw/block/fdc.c                      |  2 +-
hw/block/swim.c                     |  2 +-
hw/core/qdev-fw.c                   |  9 +++++----
hw/core/qdev.c                      |  2 +-
hw/ide/qdev.c                       |  4 ++--
hw/net/virtio-net.c                 |  2 +-
hw/pci-bridge/pci_expander_bridge.c |  2 +-
hw/scsi/scsi-bus.c                  |  2 +-
hw/usb/bus.c                        |  2 +-
hw/usb/desc.c                       |  2 +-
hw/usb/dev-smartcard-reader.c       | 16 ++++++++--------
include/hw/qdev-core.h              |  4 ++--
softmmu/bootdevice.c                |  2 +-
softmmu/qdev-monitor.c              |  6 +++---
15 files changed, 30 insertions(+), 29 deletions(-)
[PATCH 0/4] hw/qdev: Housekeeping around qdev_get_parent_bus()
Posted by Philippe Mathieu-Daudé 1 year, 2 months ago
DeviceState::parent_bus is an internal field and should be
accessed by the qdev_get_parent_bus() helper. Replace most uses.

Philippe Mathieu-Daudé (4):
  hw/qdev: Constify DeviceState* argument of qdev_get_parent_bus()
  hw: Replace dev->parent_bus by qdev_get_parent_bus(dev)
  hw: Use qdev_get_parent_bus() in
    qdev_get_own_fw_dev_path_from_handler()
  qdev-monitor: Use qdev_get_parent_bus() in bus_print_dev()

 hw/audio/intel-hda.c                |  2 +-
 hw/block/fdc.c                      |  2 +-
 hw/block/swim.c                     |  2 +-
 hw/core/qdev-fw.c                   |  9 +++++----
 hw/core/qdev.c                      |  2 +-
 hw/ide/qdev.c                       |  4 ++--
 hw/net/virtio-net.c                 |  2 +-
 hw/pci-bridge/pci_expander_bridge.c |  2 +-
 hw/scsi/scsi-bus.c                  |  2 +-
 hw/usb/bus.c                        |  2 +-
 hw/usb/desc.c                       |  2 +-
 hw/usb/dev-smartcard-reader.c       | 16 ++++++++--------
 include/hw/qdev-core.h              |  4 ++--
 softmmu/bootdevice.c                |  2 +-
 softmmu/qdev-monitor.c              |  6 +++---
 15 files changed, 30 insertions(+), 29 deletions(-)

-- 
2.38.1