Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx> --- src/qemu/qemu_hotplug.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index 81ec44ffcd..00d908912f 100644 --- a/src/qemu/qemu_hotplug.c +++ b/src/qemu/qemu_hotplug.c @@ -5312,8 +5312,9 @@ qemuDomainDetachPrepDisk(virDomainObjPtr vm, } -static bool qemuDomainDiskControllerIsBusy(virDomainObjPtr vm, - virDomainControllerDefPtr detach) +static bool +qemuDomainDiskControllerIsBusy(virDomainObjPtr vm, + virDomainControllerDefPtr detach) { size_t i; virDomainDiskDefPtr disk; @@ -5352,8 +5353,10 @@ static bool qemuDomainDiskControllerIsBusy(virDomainObjPtr vm, return false; } -static bool qemuDomainControllerIsBusy(virDomainObjPtr vm, - virDomainControllerDefPtr detach) + +static bool +qemuDomainControllerIsBusy(virDomainObjPtr vm, + virDomainControllerDefPtr detach) { switch (detach->type) { case VIR_DOMAIN_CONTROLLER_TYPE_IDE: @@ -5372,6 +5375,7 @@ static bool qemuDomainControllerIsBusy(virDomainObjPtr vm, } } + static int qemuDomainDetachPrepController(virDomainObjPtr vm, virDomainControllerDefPtr match, -- 2.28.0