scsi-bus: use DO_UPCAST.
PATCH 1/1 scsi-bus: use DO_UPCAST.
Signed-off-by Zhi Yong Wu <[email protected]>
--- hw/scsi-bus.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
hw/scsi-bus.c +1 -1
@@ -712,7 +712,7 @@ void scsi_device_purge_requests(SCSIDevice *sdev)static char *scsibus_get_fw_dev_path (DeviceState *dev) { -SCSIDevice *d = (SCSIDevice *)dev; +SCSIDevice *d =DO_UPCAST (SCSIDevice, qdev, dev);SCSIBus *bus =scsi_bus_from_device (d);char path[100 ];int i;
Signature · 1 line
1.7.2.3
Quoted 10 lines · Zhi Yong Wu
Signed-off-by Zhi Yong Wu <[email protected]>--- hw/scsi-bus.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)hw/scsi-bus.c +0
-0
hw/scsi-bus.c void scsi_device_purge_requests(SCSIDevice *sdev) · line 718
Quoted 8 lines
hw/scsi-bus.c +1
-1@@ -712,7 +712,7 @@ void scsi_device_purge_requests(SCSIDevice *sdev)static char *scsibus_get_fw_dev_path (DeviceState *dev) { -SCSIDevice *d = (SCSIDevice *)dev; +SCSIDevice *d =DO_UPCAST (SCSIDevice, qdev, dev);SCSIBus *bus =scsi_bus_from_device (d);char path[100 ];int i;
Reviewed-by Markus Armbruster <[email protected]>
Stefan Hajnoczi
AppliedQuoted 4 lines · Zhi Yong Wu
Signed-off-by Zhi Yong Wu <[email protected]>--- hw/scsi-bus.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Thanks, applied to the trivial patches tree:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches-next
Stefan