diff options
author | Thomas Huth | 2019-01-23 09:56:01 +0100 |
---|---|---|
committer | Kevin Wolf | 2019-02-01 13:46:45 +0100 |
commit | d09ea2d22786e97c5c03cd4d4888f06bb89f8dc7 (patch) | |
tree | 24098564029ef4ce663faa7556ad64ad9f990c99 /include | |
parent | block: Apply auto-read-only for ro-whitelist drivers (diff) | |
download | qemu-d09ea2d22786e97c5c03cd4d4888f06bb89f8dc7.tar.gz qemu-d09ea2d22786e97c5c03cd4d4888f06bb89f8dc7.tar.xz qemu-d09ea2d22786e97c5c03cd4d4888f06bb89f8dc7.zip |
block: Remove blk_attach_dev_legacy() / legacy_dev code
The last user of blk_attach_dev_legacy() was the code in xen_disk which
has recently been reworked. Now there is no user for this legacy function
anymore. Thus we can finally remove all code related to the "legacy_dev"
flag, too, and turn the related "void *" in block-backend.c into proper
"DeviceState *" to fix some of the remaining TODOs there.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/block-backend.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h index c8f816a200..832a4bf168 100644 --- a/include/sysemu/block-backend.h +++ b/include/sysemu/block-backend.h @@ -110,9 +110,8 @@ void blk_iostatus_disable(BlockBackend *blk); void blk_iostatus_reset(BlockBackend *blk); void blk_iostatus_set_err(BlockBackend *blk, int error); int blk_attach_dev(BlockBackend *blk, DeviceState *dev); -void blk_attach_dev_legacy(BlockBackend *blk, void *dev); -void blk_detach_dev(BlockBackend *blk, void *dev); -void *blk_get_attached_dev(BlockBackend *blk); +void blk_detach_dev(BlockBackend *blk, DeviceState *dev); +DeviceState *blk_get_attached_dev(BlockBackend *blk); char *blk_get_attached_dev_id(BlockBackend *blk); BlockBackend *blk_by_dev(void *dev); BlockBackend *blk_by_qdev_id(const char *id, Error **errp); |