Skip to content

use g_new() family of functions

Philippe Mathieu-Daudé kvm qemu-arm qemu-devel qemu-trivial 1 version Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest88 patches 41 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/88cocci: script to use g_new() & friendsscripts/coccinelle/g_new.cocci+101 -02 replies
2/88cocci: add more g_new() transformationsscripts/coccinelle/g_new.cocci+73 -01 reply
3/88cocci: extract typeof() from g_new()scripts/coccinelle/g_new.cocci+9 -00 replies
4/88cocci: avoid use of g_new0()scripts/coccinelle/g_new.cocci+46 -01 reply
5/88cocci: use g_strfreev()scripts/coccinelle/g_new.cocci+11 -00 replies
6/88ARM: use g_new() family of functionshw/arm/virt-acpi-build.c hw/timer/arm_timer.c target/arm/helper.c+4 -40 replies
7/88Audio: use g_new() family of functionsaudio/alsaaudio.c audio/coreaudio.c audio/dsoundaudio.c +5 more+8 -80 replies
8/88BT: use g_new() family of functionsbt-host.c bt-vhci.c hw/bt/core.c +2 more+9 -90 replies
9/88Bootdevice: use g_new() family of functionsbootdevice.c+1 -10 replies
10/88Character devices: use g_new() family of functionshw/char/parallel.c hw/char/serial.c hw/char/sh_serial.c+4 -40 replies
11/88Cryptodev Backends: use g_new() family of functionsbackends/cryptodev.c+1 -10 replies
12/88backends/hostmem: use g_new() family of functionsbackends/hostmem.c+2 -20 replies
13/88Dirty Bitmaps: use g_new() family of functionstests/test-hbitmap.c util/hbitmap.c+2 -21 reply
14/88ui/vnc: use g_new() family of functionsui/vnc-enc-tight.c ui/vnc-palette.c ui/vnc.c+5 -50 replies
15/88ui/spice: use g_new() family of functionsui/spice-core.c ui/spice-display.c ui/spice-input.c+9 -90 replies
16/88Main loop: use g_new() family of functionscpus-common.c include/qemu/timer.h util/main-loop.c +2 more+11 -110 replies
17/88Memory API: use g_new() family of functionsmemory.c+1 -10 replies
18/88memory: use g_new() family of functionsmemory_mapping.c+1 -10 replies
19/88exec: use g_new() family of functionsexec.c+4 -40 replies
20/88Migration: use g_new() family of functionsmigration/migration.c migration/page_cache.c migration/postcopy-ram.c +1 more+4 -51 reply
21/88NBD: use g_new() family of functionsnbd/server.c+2 -21 reply
22/88LM32: use g_new() family of functionshw/lm32/lm32_boards.c hw/lm32/lm32_hwsetup.h hw/lm32/milkymist.c+4 -40 replies
23/88M68K: use g_new() family of functionshw/m68k/mcf5206.c hw/m68k/mcf5208.c+3 -31 reply
24/88MIPS: use g_new() family of functionshw/mips/mips_malta.c hw/mips/mips_mipssim.c hw/mips/mips_r4k.c +1 more+5 -50 replies
25/88OpenRISC: use g_new() family of functionshw/openrisc/openrisc_sim.c target/openrisc/mmu.c+2 -21 reply
26/88S390: use g_new() family of functionshw/s390x/css.c hw/s390x/s390-pci-bus.c target/s390x/cpu_models.c +1 more+14 -142 replies
27/88SH4: use g_new() family of functionshw/sh4/r2d.c hw/sh4/sh7750.c hw/timer/sh_timer.c+5 -50 replies
28/88disas: use g_new() family of functionsdisas/m68k.c disas/nios2.c disas/sparc.c+3 -60 replies
29/88SPARC: use g_new() family of functionshw/sparc/leon3.c hw/sparc64/sparc64.c+3 -30 replies
30/88QEMU Guest Agent: use g_new() family of functionsqga/commands-posix.c qga/commands-win32.c qga/commands.c+17 -170 replies
31/88QMP: use g_new() family of functionsmonitor.c qmp.c tests/test-qmp-commands.c+21 -213 replies
32/88QObject: use g_new() family of functionsqobject/json-parser.c qobject/qbool.c qobject/qdict.c +3 more+9 -90 replies
33/88qom: use g_new() family of functionsqom/object.c+3 -30 replies
34/88qapi: use g_new() family of functionsqapi/opts-visitor.c qapi/qapi-clone-visitor.c qapi/qapi-dealloc-visitor.c +3 more+6 -61 reply
35/88Record/replay: use g_new() family of functionsreplay/replay-char.c replay/replay-events.c+7 -70 replies
36/88SLIRP: use g_new() family of functionsnet/slirp.c slirp/slirp.c slirp/socket.c+4 -41 reply
37/88TCG: use g_new() family of functionscpus.c tcg/tcg.c+11 -110 replies
38/88VFIO: use g_new() family of functionshw/vfio/common.c hw/vfio/pci-quirks.c hw/vfio/pci.c +1 more+21 -220 replies
39/88hw/i386: use g_new() family of functionshw/i386/acpi-build.c hw/i386/amd_iommu.c hw/i386/intel_iommu.c +2 more+12 -120 replies
40/88hw/xen: use g_new() family of functionshw/9pfs/xen-9p-backend.c hw/display/xenfb.c hw/i386/xen/xen-hvm.c +2 more+16 -161 reply
41/88target/i386: use g_new() family of functionstarget/i386/cpu.c target/i386/hax-all.c target/i386/hax-mem.c +1 more+7 -70 replies
42/88XTFPGA: use g_new() family of functionshw/xtensa/xtfpga.c+1 -10 replies
43/88hw/core: use g_new() family of functionshw/core/irq.c hw/core/ptimer.c hw/core/qdev.c +1 more+4 -40 replies
44/88hw/core/loader: use g_new() family of functionshw/core/loader.c+3 -31 reply
45/88hw/display: use g_new() family of functionshw/display/pxa2xx_lcd.c hw/display/tc6393xb.c+2 -20 replies
46/88hw/display/vga: use g_new() family of functionshw/display/vga-isa-mm.c hw/display/vga.c+4 -40 replies
47/88hw/i2c: use g_new() family of functionshw/i2c/bitbang_i2c.c hw/i2c/core.c+3 -30 replies
48/88hw/input: use g_new() family of functionshw/input/pckbd.c hw/input/ps2.c hw/input/pxa2xx_keypad.c +1 more+5 -60 replies
49/88hw/misc: use g_new() family of functionshw/misc/applesmc.c hw/misc/pvpanic.c+2 -21 reply
50/88ivshmem: use g_new() family of functionshw/misc/ivshmem.c+2 -20 replies
51/88hw/timer: use g_new() family of functionshw/timer/slavio_timer.c+1 -12 replies
52/88i.MX31: use g_new() family of functionshw/misc/imx6_src.c+1 -10 replies
53/88iSCSI: use g_new() family of functionsblock/iscsi.c+1 -10 replies
54/88KVM: use g_new() family of functionsaccel/kvm/kvm-all.c+4 -41 reply
55/88PReP: use g_new() family of functionshw/ppc/prep.c+1 -11 reply
56/88PowerPC: use g_new() family of functionshw/ppc/ppc.c hw/ppc/ppc_booke.c target/ppc/kvm.c +1 more+14 -141 reply
57/88ppc: use g_new() family of functionshw/intc/heathrow_pic.c hw/ppc/mac_newworld.c hw/ppc/mac_oldworld.c +1 more+5 -61 reply
58/88ppc4xx: use g_new() family of functionshw/ppc/ppc405_boards.c hw/ppc/ppc405_uc.c hw/ppc/ppc440_bamboo.c +1 more+18 -181 reply
59/88ppce500: use g_new() family of functionshw/ppc/e500.c+3 -41 reply
60/88sPAPR: use g_new() family of functionshw/intc/xics.c hw/intc/xics_kvm.c hw/ppc/spapr.c +4 more+9 -90 replies
61/88tests: use g_new() family of functionstests/ahci-test.c tests/fw_cfg-test.c tests/libqos/ahci.c +4 more+11 -112 replies
62/88user: use g_new() family of functionslinux-user/elfload.c thunk.c+2 -20 replies
63/88bsd-user/syscall: fix a memory leak on EFAULT, use g_new()bsd-user/syscall.c+2 -12 replies
64/88user: use g_strfreev()bsd-user/main.c linux-user/main.c+2 -100 replies
65/88util: use g_new() family of functionsutil/acl.c util/envlist.c util/error.c +4 more+15 -150 replies
66/88util/qemu-thread-win32: use g_new() family of functionsutil/qemu-thread-win32.c+1 -11 reply
67/88util/coroutine: use g_new() family of functionsutil/coroutine-sigaltstack.c util/coroutine-ucontext.c util/coroutine-win32.c+3 -30 replies
68/88virtio: use g_new() family of functionshw/char/virtio-serial-bus.c hw/display/virtio-gpu.c hw/net/virtio-net.c +5 more+13 -150 replies
69/88virtio-9p: use g_new() family of functionshw/9pfs/9p-handle.c hw/9pfs/9p-proxy.c hw/9pfs/9p-synth.c +1 more+7 -71 reply
70/88block: use g_new() family of functionsblock/backup.c block/blkdebug.c block/commit.c +9 more+18 -200 replies
71/88block: avoid use of g_new0()block/qcow2.c block/vhdx.c+6 -51 reply
72/88hw/block/nvme: use g_new() family of functionshw/block/nvme.c+2 -20 replies
73/88hw/block/xen_disk: avoid use of g_new0()hw/block/xen_disk.c+1 -10 replies
74/88balloon: use g_new() family of functionsballoon.c+1 -10 replies
75/88decnumber: use g_new() family of functionslibdecnumber/decNumber.c+4 -40 replies
76/88dma: use g_new() family of functionsdma-helpers.c hw/dma/etraxfs_dma.c hw/dma/rc4030.c+5 -50 replies
77/88dump: use g_new() family of functionsdump.c+5 -61 reply
78/88gdb: use g_new() family of functionsgdbstub.c+2 -21 reply
79/88hmp: use g_new() family of functionshmp.c+1 -10 replies
80/88numa: use g_new() family of functionsnuma.c+1 -10 replies
81/88hw/acpi: use g_new() family of functionshw/acpi/vmgenid.c+1 -11 reply
82/88hw/ipmi: use g_new() family of functionshw/ipmi/ipmi_bmc_sim.c+1 -10 replies
83/88hw/pci: use g_new() family of functionshw/pci/pci.c hw/pci/pcie_port.c tests/libqos/pci-pc.c +1 more+4 -40 replies
84/88hw/scsi: use g_new() family of functionshw/scsi/vmw_pvscsi.c+1 -10 replies
85/88hw/usb: use g_new() family of functionshw/usb/hcd-ehci.c+1 -10 replies
86/88net/hub: use g_new() family of functionsnet/hub.c+1 -10 replies
87/88hw/net/rocker: use g_new() family of functionshw/net/rocker/rocker_of_dpa.c+2 -20 replies
88/88scripts/coverity-model: use g_new() family of functionsscripts/coverity-model.c+1 -12 replies

Reviews trailers per patch

23 of 88 patches have a Reviewed-by or Acked-by.

PatchPaul DurrantAnthony PerardStafford Hornexiaoqiang zhaoDavid GibsonThomas HuthStefan WeilJuan QuintelaGreg KurzJohn SnowCornelia HuckAlex BennéeGabriel SomloBen WarrenEric BlakeAlistair Francis
1/88
2/88
3/88
4/88
5/88
6/88
7/88
8/88
9/88
10/88
11/88
12/88
13/88R-b A-b
14/88
15/88
16/88
17/88
18/88
19/88
20/88R-b
21/88R-b
22/88
23/88R-b
24/88
25/88A-b
26/88A-b
27/88
28/88
29/88
30/88
31/88
32/88
33/88
34/88
35/88
36/88
37/88
38/88
39/88
40/88R-b
41/88
42/88
43/88
44/88R-b
45/88
46/88
47/88
48/88
49/88R-b
50/88
51/88R-b R-b
52/88
53/88
54/88R-b
55/88A-b
56/88A-b
57/88A-b
58/88A-b
59/88A-b
60/88
61/88R-b A-b
62/88
63/88
64/88
65/88
66/88R-b
67/88
68/88
69/88A-b
70/88
71/88
72/88
73/88R-b A-b
74/88
75/88
76/88
77/88A-b
78/88R-b
79/88
80/88
81/88R-b
82/88
83/88
84/88
85/88
86/88
87/88
88/88

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 16 reviewers.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/88] use g_new() family of functions

Hi,

This is a follow-up of Marc-André's clang-tidy series [1].
While chatting we realized we were trying to reach the same goal, Marc-André using clang-tidy and me using spatch; so he let me finish his series applying my changes over his.
I also included Jan's patch which fits well.

Summary:
- 1 bugfix (memory leak)
- few optimizations (avoid to zeroise when all memory is assigned)
- bunch of mechanical refactors

Regards,

Phil.

[1]: http://lists.nongnu.org/archive/html/qemu-devel/2017-09/msg00881.html

Jan Beulich (1):
hw/block/xen_disk: avoid use of g_new0()

Marc-André Lureau (57):
ARM: use g_new() family of functions
Audio: use g_new() family of functions
BT: use g_new() family of functions
Bootdevice: use g_new() family of functions Character devices: use g_new() family of functions Cryptodev Backends: use g_new() family of functions Dirty Bitmaps: use g_new() family of functions ui/vnc: use g_new() family of functions Main loop: use g_new() family of functions Memory API: use g_new() family of functions
memory: use g_new() family of functions
Migration: use g_new() family of functions
NBD: use g_new() family of functions
LM32: use g_new() family of functions
M68K: use g_new() family of functions
MIPS: use g_new() family of functions
OpenRISC: use g_new() family of functions
S390: use g_new() family of functions
SH4: use g_new() family of functions
disas: use g_new() family of functions
SPARC: use g_new() family of functions
QEMU Guest Agent: use g_new() family of functions
QMP: use g_new() family of functions
QObject: use g_new() family of functions Record/replay: use g_new() family of functions
SLIRP: use g_new() family of functions
TCG: use g_new() family of functions
VFIO: use g_new() family of functions hw/i386: use g_new() family of functions hw/xen: use g_new() family of functions
XTFPGA: use g_new() family of functions hw/core: use g_new() family of functions hw/display: use g_new() family of functions hw/i2c: use g_new() family of functions hw/input: use g_new() family of functions hw/misc: use g_new() family of functions
ivshmem: use g_new() family of functions hw/timer: use g_new() family of functions i.MX31: use g_new() family of functions
iSCSI: use g_new() family of functions
KVM: use g_new() family of functions
PReP: use g_new() family of functions
PowerPC: use g_new() family of functions
ppc: use g_new() family of functions
ppc4xx: use g_new() family of functions
ppce500: use g_new() family of functions
sPAPR: use g_new() family of functions
tests: use g_new() family of functions
user: use g_new() family of functions
user: use g_strfreev()
util: use g_new() family of functions
virtio: use g_new() family of functions
virtio-9p: use g_new() family of functions
decnumber: use g_new() family of functions
dma: use g_new() family of functions
dump: use g_new() family of functions
gdb: use g_new() family of functions

Philippe Mathieu-Daudé (30):
cocci: script to use g_new() & friends
cocci: add more g_new() transformations
cocci: extract typeof() from g_new()
cocci: avoid use of g_new0()
cocci: use g_strfreev()
backends/hostmem: use g_new() family of functions ui/spice: use g_new() family of functions
exec: use g_new() family of functions
qom: use g_new() family of functions
qapi: use g_new() family of functions target/i386: use g_new() family of functions hw/core/loader: use g_new() family of functions hw/display/vga: use g_new() family of functions bsd-user/syscall: fix a memory leak on EFAULT, use g_new() util/qemu-thread-win32: use g_new() family of functions util/coroutine: use g_new() family of functions
block: use g_new() family of functions
block: avoid use of g_new0()
hw/block/nvme: use g_new() family of functions
balloon: use g_new() family of functions
hmp: use g_new() family of functions
numa: use g_new() family of functions
hw/acpi: use g_new() family of functions hw/ipmi: use g_new() family of functions
hw/pci: use g_new() family of functions
hw/scsi: use g_new() family of functions
hw/usb: use g_new() family of functions
net/hub: use g_new() family of functions hw/net/rocker: use g_new() family of functions scripts/coverity-model: use g_new() family of functions

 hw/lm32/lm32_hwsetup.h              |   2 +-
 include/qemu/timer.h                |   2 +-
 accel/kvm/kvm-all.c                 |   8 +-
 audio/alsaaudio.c                   |   2 +-
 audio/coreaudio.c                   |   2 +-
 audio/dsoundaudio.c                 |   2 +-
 audio/ossaudio.c                    |   2 +-
 audio/paaudio.c                     |   2 +-
 audio/wavaudio.c                    |   2 +-
 audio/wavcapture.c                  |   2 +-
 backends/cryptodev.c                |   2 +-
 backends/hostmem.c                  |   4 +-
 balloon.c                           |   2 +-
 block/backup.c                      |   2 +-
 block/blkdebug.c                    |   4 +-
 block/commit.c                      |   2 +-
 block/iscsi.c                       |   2 +-
 block/linux-aio.c                   |   2 +-
 block/mirror.c                      |   2 +-
 block/qapi.c                        |   4 +-
 block/qcow2-refcount.c              |  12 +-
 block/qcow2.c                       |   2 +-
 block/qed-l2-cache.c                |   2 +-
 block/sheepdog.c                    |   2 +-
 block/stream.c                      |   2 +-
 block/vhdx.c                        |   9 +-
 block/win32-aio.c                   |   2 +-
 bootdevice.c                        |   2 +-
 bsd-user/main.c                     |   6 +-
 bsd-user/syscall.c                  |   3 +-
 bt-host.c                           |   2 +-
 bt-vhci.c                           |   2 +-
 cpus-common.c                       |   4 +-
 cpus.c                              |  18 +--
 disas/m68k.c                        |   3 +-
 disas/nios2.c                       |   3 +-
 disas/sparc.c                       |   3 +-
 dma-helpers.c                       |   4 +-
 dump.c                              |  11 +-
 exec.c                              |   8 +-
 gdbstub.c                           |   4 +-
 hmp.c                               |   2 +-
 hw/9pfs/9p-handle.c                 |   2 +-
 hw/9pfs/9p-proxy.c                  |   2 +-
 hw/9pfs/9p-synth.c                  |   8 +-
 hw/9pfs/9p.c                        |   2 +-
 hw/9pfs/xen-9p-backend.c            |   2 +-
 hw/acpi/vmgenid.c                   |   2 +-
 hw/arm/virt-acpi-build.c            |   2 +-
 hw/audio/intel-hda.c                |   2 +-
 hw/block/nvme.c                     |   4 +-
 hw/block/xen_disk.c                 |   2 +-
 hw/bt/core.c                        |   4 +-
 hw/bt/hci.c                         |   4 +-
 hw/bt/l2cap.c                       |   6 +-
 hw/char/parallel.c                  |   2 +-
 hw/char/serial.c                    |   4 +-
 hw/char/sh_serial.c                 |   2 +-
 hw/char/virtio-serial-bus.c         |   6 +-
 hw/core/irq.c                       |   2 +-
 hw/core/loader.c                    |   6 +-
 hw/core/ptimer.c                    |   2 +-
 hw/core/qdev.c                      |   2 +-
 hw/core/reset.c                     |   2 +-
 hw/display/pxa2xx_lcd.c             |   2 +-
 hw/display/tc6393xb.c               |   2 +-
 hw/display/vga-isa-mm.c             |   6 +-
 hw/display/vga.c                    |   2 +-
 hw/display/virtio-gpu.c             |   4 +-
 hw/display/xenfb.c                  |   4 +-
 hw/dma/etraxfs_dma.c                |   2 +-
 hw/dma/rc4030.c                     |   4 +-
 hw/i2c/bitbang_i2c.c                |   2 +-
 hw/i2c/core.c                       |   4 +-
 hw/i386/acpi-build.c                |   4 +-
 hw/i386/amd_iommu.c                 |   4 +-
 hw/i386/intel_iommu.c               |   2 +-
 hw/i386/pc.c                        |   8 +-
 hw/i386/pc_sysfw.c                  |   6 +-
 hw/i386/xen/xen-hvm.c               |  10 +-
 hw/i386/xen/xen-mapcache.c          |  14 +--
 hw/input/pckbd.c                    |   2 +-
 hw/input/ps2.c                      |   4 +-
 hw/input/pxa2xx_keypad.c            |   2 +-
 hw/input/tsc2005.c                  |   3 +-
 hw/intc/heathrow_pic.c              |   2 +-
 hw/intc/xics.c                      |   2 +-
 hw/intc/xics_kvm.c                  |   4 +-
 hw/ipmi/ipmi_bmc_sim.c              |   2 +-
 hw/lm32/lm32_boards.c               |   4 +-
 hw/lm32/milkymist.c                 |   2 +-
 hw/m68k/mcf5206.c                   |   4 +-
 hw/m68k/mcf5208.c                   |   2 +-
 hw/mips/mips_malta.c                |   2 +-
 hw/mips/mips_mipssim.c              |   2 +-
 hw/mips/mips_r4k.c                  |   2 +-
 hw/misc/applesmc.c                  |   2 +-
 hw/misc/imx6_src.c                  |   2 +-
 hw/misc/ivshmem.c                   |   4 +-
 hw/misc/pvpanic.c                   |   2 +-
 hw/net/rocker/rocker_of_dpa.c       |   4 +-
 hw/net/virtio-net.c                 |   4 +-
 hw/openrisc/openrisc_sim.c          |   2 +-
 hw/pci/pci.c                        |   2 +-
 hw/pci/pcie_port.c                  |   2 +-
 hw/ppc/e500.c                       |   7 +-
 hw/ppc/mac_newworld.c               |   5 +-
 hw/ppc/mac_oldworld.c               |   2 +-
 hw/ppc/ppc.c                        |   8 +-
 hw/ppc/ppc405_boards.c              |   4 +-
 hw/ppc/ppc405_uc.c                  |  24 ++--
 hw/ppc/ppc440_bamboo.c              |   2 +-
 hw/ppc/ppc4xx_devs.c                |   6 +-
 hw/ppc/ppc_booke.c                  |   4 +-
 hw/ppc/prep.c                       |   2 +-
 hw/ppc/spapr.c                      |   2 +-
 hw/ppc/spapr_events.c               |   4 +-
 hw/ppc/spapr_iommu.c                |   2 +-
 hw/ppc/spapr_pci.c                  |   2 +-
 hw/ppc/virtex_ml507.c               |   2 +-
 hw/s390x/css.c                      |  10 +-
 hw/s390x/s390-pci-bus.c             |   4 +-
 hw/scsi/vmw_pvscsi.c                |   2 +-
 hw/sh4/r2d.c                        |   4 +-
 hw/sh4/sh7750.c                     |   2 +-
 hw/sparc/leon3.c                    |   2 +-
 hw/sparc64/sparc64.c                |   4 +-
 hw/timer/arm_timer.c                |   2 +-
 hw/timer/sh_timer.c                 |   4 +-
 hw/timer/slavio_timer.c             |   2 +-
 hw/usb/hcd-ehci.c                   |   2 +-
 hw/vfio/common.c                    |  12 +-
 hw/vfio/pci-quirks.c                |  18 +--
 hw/vfio/pci.c                       |   7 +-
 hw/vfio/platform.c                  |   6 +-
 hw/virtio/vhost.c                   |   2 +-
 hw/virtio/virtio-crypto.c           |   2 +-
 hw/virtio/virtio.c                  |   2 +-
 hw/xen/xen_pvdev.c                  |   2 +-
 hw/xtensa/xtfpga.c                  |   2 +-
 libdecnumber/decNumber.c            |   8 +-
 linux-user/elfload.c                |   2 +-
 linux-user/main.c                   |   6 +-
 memory.c                            |   2 +-
 memory_mapping.c                    |   2 +-
 migration/migration.c               |   2 +-
 migration/page_cache.c              |   2 +-
 migration/postcopy-ram.c            |   2 +-
 migration/ram.c                     |   3 +-
 monitor.c                           |  14 +--
 nbd/server.c                        |   4 +-
 net/hub.c                           |   2 +-
 net/slirp.c                         |   4 +-
 numa.c                              |   2 +-
 qapi/opts-visitor.c                 |   2 +-
 qapi/qapi-clone-visitor.c           |   2 +-
 qapi/qapi-dealloc-visitor.c         |   2 +-
 qapi/qobject-output-visitor.c       |   2 +-
 qapi/string-input-visitor.c         |   2 +-
 qapi/string-output-visitor.c        |   2 +-
 qga/commands-posix.c                |  20 +--
 qga/commands-win32.c                |  12 +-
 qga/commands.c                      |   2 +-
 qmp.c                               |  14 +--
 qobject/json-parser.c               |   2 +-
 qobject/qbool.c                     |   2 +-
 qobject/qdict.c                     |   4 +-
 qobject/qlist.c                     |   4 +-
 qobject/qstring.c                   |   2 +-
 qom/object.c                        |   6 +-
 replay/replay-char.c                |   4 +-
 replay/replay-events.c              |  10 +-
 scripts/coverity-model.c            |   2 +-
 slirp/slirp.c                       |   2 +-
 slirp/socket.c                      |   2 +-
 target/arm/helper.c                 |   4 +-
 target/i386/cpu.c                   |   6 +-
 target/i386/hax-all.c               |   4 +-
 target/i386/hax-mem.c               |   2 +-
 target/i386/hyperv.c                |   2 +-
 target/mips/translate_init.c        |   4 +-
 target/openrisc/mmu.c               |   2 +-
 target/ppc/kvm.c                    |   2 +-
 target/ppc/translate_init.c         |  14 +--
 target/s390x/cpu_models.c           |  12 +-
 target/s390x/diag.c                 |   2 +-
 tcg/tcg.c                           |   4 +-
 tests/ahci-test.c                   |   4 +-
 tests/fw_cfg-test.c                 |   4 +-
 tests/libqos/ahci.c                 |   2 +-
 tests/libqos/libqos.c               |   2 +-
 tests/libqos/malloc.c               |   6 +-
 tests/libqos/pci-pc.c               |   2 +-
 tests/libqos/pci-spapr.c            |   2 +-
 tests/libqos/pci.c                  |   2 +-
 tests/libqos/virtio-mmio.c          |   4 +-
 tests/libqos/virtio-pci.c           |   4 +-
 tests/libqtest.c                    |   2 +-
 tests/pc-cpu-test.c                 |   2 +-
 tests/test-hbitmap.c                |   2 +-
 tests/test-qmp-commands.c           |  14 +--
 tests/test-qobject-output-visitor.c |   4 +-
 thunk.c                             |   2 +-
 ui/spice-core.c                     |  10 +-
 ui/spice-display.c                  |   4 +-
 ui/spice-input.c                    |   4 +-
 ui/vnc-enc-tight.c                  |   2 +-
 ui/vnc-palette.c                    |   2 +-
 ui/vnc.c                            |   6 +-
 util/acl.c                          |   6 +-
 util/coroutine-sigaltstack.c        |   2 +-
 util/coroutine-ucontext.c           |   2 +-
 util/coroutine-win32.c              |   2 +-
 util/envlist.c                      |   6 +-
 util/error.c                        |   2 +-
 util/hbitmap.c                      |   2 +-
 util/iohandler.c                    |   2 +-
 util/main-loop.c                    |   2 +-
 util/module.c                       |   4 +-
 util/qemu-option.c                  |   8 +-
 util/qemu-thread-win32.c            |   2 +-
 util/qemu-timer.c                   |   2 +-
 util/qht.c                          |   2 +-
 vl.c                                |  12 +-
 scripts/coccinelle/g_new.cocci      | 240 ++++++++++++++++++++++++++++++++++++
 225 files changed, 677 insertions(+), 456 deletions(-)
 create mode 100644 scripts/coccinelle/g_new.cocci
Signature · 1 line
2.14.2