summaryrefslogtreecommitdiff
path: root/include/hw/scsi
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-08-23 20:30:03 +0200
committerAndreas Färber <afaerber@suse.de>2013-08-30 20:14:39 +0200
commitb1187b51ff5563135da0a9e5c855d7876ab1a926 (patch)
tree81c6a30bfe00e81e35d4532402f1538689232e96 /include/hw/scsi
parentdd301ca607feddab3b44f927cd36aee004c40e1a (diff)
downloadqemu-b1187b51ff5563135da0a9e5c855d7876ab1a926.zip
scsi: Pass size to scsi_bus_new()
To be passed to qbus_create_inplace(). Use DEVICE() casts instead of direct parent field access. Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/hw/scsi')
-rw-r--r--include/hw/scsi/scsi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/scsi/scsi.h b/include/hw/scsi/scsi.h
index 87865313eb..1b6651054a 100644
--- a/include/hw/scsi/scsi.h
+++ b/include/hw/scsi/scsi.h
@@ -152,8 +152,8 @@ struct SCSIBus {
const SCSIBusInfo *info;
};
-void scsi_bus_new(SCSIBus *bus, DeviceState *host, const SCSIBusInfo *info,
- const char *bus_name);
+void scsi_bus_new(SCSIBus *bus, size_t bus_size, DeviceState *host,
+ const SCSIBusInfo *info, const char *bus_name);
static inline SCSIBus *scsi_bus_from_device(SCSIDevice *d)
{