]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
qapi: Replace qobject_to_X(o) by qobject_to(X, o)
authorMax Reitz <mreitz@redhat.com>
Sat, 24 Feb 2018 15:40:29 +0000 (16:40 +0100)
committerEric Blake <eblake@redhat.com>
Mon, 19 Mar 2018 19:58:36 +0000 (14:58 -0500)
commit7dc847ebba953db90853d15f140c20eef74d4fb2
treef17aad0438ed253a90674b74732917d449147f07
parent1a56b1e2ab5e9d6d89386ca953b4afb419e15abe
qapi: Replace qobject_to_X(o) by qobject_to(X, o)

This patch was generated using the following Coccinelle script:

@@
expression Obj;
@@
(
- qobject_to_qnum(Obj)
+ qobject_to(QNum, Obj)
|
- qobject_to_qstring(Obj)
+ qobject_to(QString, Obj)
|
- qobject_to_qdict(Obj)
+ qobject_to(QDict, Obj)
|
- qobject_to_qlist(Obj)
+ qobject_to(QList, Obj)
|
- qobject_to_qbool(Obj)
+ qobject_to(QBool, Obj)
)

and a bit of manual fix-up for overly long lines and three places in
tests/check-qjson.c that Coccinelle did not find.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-Id: <20180224154033.29559-4-mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: swap order from qobject_to(o, X), rebase to master, also a fix
to latent false-positive compiler complaint about hw/i386/acpi-build.c]
Signed-off-by: Eric Blake <eblake@redhat.com>
51 files changed:
block.c
block/parallels.c
block/qapi.c
block/qcow.c
block/qcow2.c
block/qed.c
block/rbd.c
block/sheepdog.c
block/vhdx.c
block/vpc.c
blockdev.c
hw/i386/acpi-build.c
monitor.c
qapi/qmp-dispatch.c
qapi/qobject-input-visitor.c
qapi/qobject-output-visitor.c
qga/main.c
qmp.c
qobject/json-parser.c
qobject/qbool.c
qobject/qdict.c
qobject/qjson.c
qobject/qlist.c
qobject/qlit.c
qobject/qnum.c
qobject/qstring.c
qom/object.c
target/i386/cpu.c
target/s390x/cpu_models.c
tests/check-qdict.c
tests/check-qjson.c
tests/check-qlist.c
tests/check-qlit.c
tests/check-qnum.c
tests/check-qobject.c
tests/check-qstring.c
tests/device-introspect-test.c
tests/libqtest.c
tests/numa-test.c
tests/qom-test.c
tests/test-char.c
tests/test-keyval.c
tests/test-qga.c
tests/test-qmp-cmds.c
tests/test-qmp-event.c
tests/test-qobject-input-visitor.c
tests/test-qobject-output-visitor.c
tests/test-x86-cpuid-compat.c
util/keyval.c
util/qemu-config.c
util/qemu-option.c