mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
qapi: Use QNull for a more regular visit_type_null()
Make visit_type_null() take an @obj argument like its buddies. This helps keep the next commit simple. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
006ca09f30
commit
d2f95f4d48
15 changed files with 60 additions and 25 deletions
|
@ -8428,11 +8428,14 @@ POWERPC_FAMILY(POWER5P)(ObjectClass *oc, void *data)
|
|||
static void getset_compat_deprecated(Object *obj, Visitor *v, const char *name,
|
||||
void *opaque, Error **errp)
|
||||
{
|
||||
QNull *null = NULL;
|
||||
|
||||
if (!qtest_enabled()) {
|
||||
error_report("CPU 'compat' property is deprecated and has no effect; "
|
||||
"use max-cpu-compat machine property instead");
|
||||
}
|
||||
visit_type_null(v, name, NULL);
|
||||
visit_type_null(v, name, &null, NULL);
|
||||
QDECREF(null);
|
||||
}
|
||||
|
||||
static const PropertyInfo ppc_compat_deprecated_propinfo = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue