]> git.proxmox.com Git - mirror_qemu.git/commit - scripts/coccinelle/qobject.cocci
qobject: Update coccinelle script to catch Q{INC, DEC}REF
authorEric Blake <eblake@redhat.com>
Sat, 24 Jun 2017 18:10:08 +0000 (12:10 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 12 Jul 2017 15:51:54 +0000 (17:51 +0200)
commit8a4613a0ab4b6e9271e64aaa88f588ed1b749eb4
tree9e358ef25717802e6e40937ac11ebb91a8355091
parent187f47e947d1e0f4547e58b7cc4fad4d5542b185
qobject: Update coccinelle script to catch Q{INC, DEC}REF

The recent commit b097efc0 used qobject_decref(QOBJECT(E)), even
though we already have QDECREF(E) for that purpose.  We can update
our coccinelle script to catch any future relapses; with that in
place, the rest of the patch is generated with:
 spatch --sp-file scripts/coccinelle/qobject.cocci \
        --macro-file scripts/cocci-macro-file.h --dir . --in-place

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20170624181008.25497-3-eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
monitor.c
scripts/coccinelle/qobject.cocci