mirror of https://gitee.com/openkylin/libvirt.git
qemu: Drop @qemuCaps argument from qemuDomainDefValidateMemoryHotplug()
After previous cleanup the @qemuCaps argument in qemuDomainDefValidateMemoryHotplug() is unused and thus doesn't need to be passed. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
a6e4c87299
commit
d4eb2aabca
|
@ -8532,7 +8532,6 @@ qemuDomainDefValidateMemoryHotplugDevice(const virDomainMemoryDef *mem,
|
|||
/**
|
||||
* qemuDomainDefValidateMemoryHotplug:
|
||||
* @def: domain definition
|
||||
* @qemuCaps: qemu capabilities object
|
||||
* @mem: definition of memory device that is to be added to @def with hotplug,
|
||||
* NULL in case of regular VM startup
|
||||
*
|
||||
|
@ -8544,7 +8543,6 @@ qemuDomainDefValidateMemoryHotplugDevice(const virDomainMemoryDef *mem,
|
|||
*/
|
||||
int
|
||||
qemuDomainDefValidateMemoryHotplug(const virDomainDef *def,
|
||||
virQEMUCapsPtr qemuCaps G_GNUC_UNUSED,
|
||||
const virDomainMemoryDef *mem)
|
||||
{
|
||||
unsigned int nmems = def->nmems;
|
||||
|
|
|
@ -795,7 +795,6 @@ int qemuDomainAdjustMaxMemLockHostdev(virDomainObjPtr vm,
|
|||
virDomainHostdevDefPtr hostdev);
|
||||
|
||||
int qemuDomainDefValidateMemoryHotplug(const virDomainDef *def,
|
||||
virQEMUCapsPtr qemuCaps,
|
||||
const virDomainMemoryDef *mem);
|
||||
|
||||
bool qemuDomainSupportsNewVcpuHotplug(virDomainObjPtr vm);
|
||||
|
|
|
@ -2399,7 +2399,7 @@ qemuDomainAttachMemory(virQEMUDriverPtr driver,
|
|||
if (qemuDomainMemoryDeviceAlignSize(vm->def, mem) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (qemuDomainDefValidateMemoryHotplug(vm->def, priv->qemuCaps, mem) < 0)
|
||||
if (qemuDomainDefValidateMemoryHotplug(vm->def, mem) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (qemuDomainAssignMemoryDeviceSlot(vm->def, mem) < 0)
|
||||
|
|
|
@ -1156,7 +1156,7 @@ qemuValidateDomainDef(const virDomainDef *def,
|
|||
if (qemuValidateDomainDefCpu(driver, def, qemuCaps) < 0)
|
||||
return -1;
|
||||
|
||||
if (qemuDomainDefValidateMemoryHotplug(def, qemuCaps, NULL) < 0)
|
||||
if (qemuDomainDefValidateMemoryHotplug(def, NULL) < 0)
|
||||
return -1;
|
||||
|
||||
if (qemuValidateDomainDefClockTimers(def, qemuCaps) < 0)
|
||||
|
|
Loading…
Reference in New Issue