This series mainly implements the conversions of ide, floppy and nvme device to realize. Add some error handling messages and remove the local variable local_err, use errp to propagate the error directly. Also fix the unusual function name.
Cc: John Snow <js...@redhat.com> Cc: Kevin Wolf <kw...@redhat.com> Cc: Max Reitz <mre...@redhat.com> Cc: Keith Busch <keith.bu...@intel.com> Cc: Stefan Hajnoczi <stefa...@redhat.com> Cc: "Michael S. Tsirkin" <m...@redhat.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: Gerd Hoffmann <kra...@redhat.com> Cc: Markus Armbruster <arm...@redhat.com> Mao Zhongyi (6): hw/ide: Convert DeviceClass init to realize hw/block/fdc: Convert to realize hw/block/nvme: Convert to realize hw/block: Fix the return type hw/block: Use errp directly rather than local_err dev-storage: Fix the unusual function name hw/block/block.c | 21 +++++---- hw/block/dataplane/virtio-blk.c | 16 ++++--- hw/block/dataplane/virtio-blk.h | 6 +-- hw/block/fdc.c | 48 +++++++++------------ hw/block/nvme.c | 24 +++++------ hw/block/virtio-blk.c | 17 +++----- hw/ide/core.c | 7 +-- hw/ide/qdev.c | 94 +++++++++++++++++++---------------------- hw/scsi/scsi-disk.c | 13 ++---- hw/usb/dev-storage.c | 29 ++++++------- include/hw/block/block.h | 10 ++--- include/hw/ide/internal.h | 5 ++- 12 files changed, 135 insertions(+), 155 deletions(-) -- 2.9.4