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