diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c index a8e0b8caddcead23455aa3fb4c8a966d7f880b86..7b7411d5001ddcf0708d1991df3239b496f00660 100644 --- a/src/qemu/qemu_cgroup.c +++ b/src/qemu/qemu_cgroup.c @@ -239,7 +239,7 @@ qemuSetupHostSCSIDeviceCgroup(virSCSIDevicePtr dev ATTRIBUTE_UNUSED, } int -qemuSetupHostdevCGroup(virDomainObjPtr vm, +qemuSetupHostdevCgroup(virDomainObjPtr vm, virDomainHostdevDefPtr dev) { int ret = -1; @@ -592,7 +592,7 @@ qemuSetupDevicesCgroup(virQEMUDriverPtr driver, goto cleanup; for (i = 0; i < vm->def->nhostdevs; i++) { - if (qemuSetupHostdevCGroup(vm, vm->def->hostdevs[i]) < 0) + if (qemuSetupHostdevCgroup(vm, vm->def->hostdevs[i]) < 0) goto cleanup; } diff --git a/src/qemu/qemu_cgroup.h b/src/qemu/qemu_cgroup.h index 711a6de28b35895e1249c30752c56e497ca45f7f..2bcf071d3792acce0c50e0439629e6cb57f980db 100644 --- a/src/qemu/qemu_cgroup.h +++ b/src/qemu/qemu_cgroup.h @@ -36,7 +36,7 @@ int qemuSetupDiskCgroup(virDomainObjPtr vm, virDomainDiskDefPtr disk); int qemuTeardownDiskCgroup(virDomainObjPtr vm, virDomainDiskDefPtr disk); -int qemuSetupHostdevCGroup(virDomainObjPtr vm, +int qemuSetupHostdevCgroup(virDomainObjPtr vm, virDomainHostdevDefPtr dev) ATTRIBUTE_RETURN_CHECK; int qemuTeardownHostdevCgroup(virDomainObjPtr vm, diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index 0bd88ce9889200651b5aa4016d4c6e517d0b3ccc..8804d3d493793b59aa284c24bc50979a51a15d3a 100644 --- a/src/qemu/qemu_hotplug.c +++ b/src/qemu/qemu_hotplug.c @@ -1290,7 +1290,7 @@ qemuDomainAttachHostPCIDevice(virQEMUDriverPtr driver, } vm->def->hostdevs[--(vm->def->nhostdevs)] = NULL; - if (qemuSetupHostdevCGroup(vm, hostdev) < 0) + if (qemuSetupHostdevCgroup(vm, hostdev) < 0) goto error; teardowncgroup = true; @@ -1899,7 +1899,7 @@ qemuDomainAttachHostUSBDevice(virQEMUDriverPtr driver, added = true; - if (qemuSetupHostdevCGroup(vm, hostdev) < 0) + if (qemuSetupHostdevCgroup(vm, hostdev) < 0) goto cleanup; teardowncgroup = true; @@ -1994,7 +1994,7 @@ qemuDomainAttachHostSCSIDevice(virConnectPtr conn, return -1; } - if (qemuSetupHostdevCGroup(vm, hostdev) < 0) + if (qemuSetupHostdevCgroup(vm, hostdev) < 0) goto cleanup; teardowncgroup = true;