[PULL 0/4] Miscellaneous patches patches for 2022-03-21

Markus Armbruster posted 4 patches 2 years, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220321145853.2523825-1-armbru@redhat.com
Test checkpatch failed
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Gerd Hoffmann <kraxel@redhat.com>, Christian Schoenebeck <qemu_oss@crudebyte.com>, "Gonglei (Arei)" <arei.gonglei@huawei.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Greg Kurz <groug@kaod.org>, Igor Mammedov <imammedo@redhat.com>, Ani Sinha <ani@anisinha.ca>, Laurent Vivier <lvivier@redhat.com>, Amit Shah <amit@kernel.org>, Peter Maydell <peter.maydell@linaro.org>, Stefano Stabellini <sstabellini@kernel.org>, Anthony Perard <anthony.perard@citrix.com>, Paul Durrant <paul@xen.org>, "Hervé Poussineau" <hpoussin@reactos.org>, Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>, Corey Minyard <cminyard@mvista.com>, Patrick Venture <venture@google.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Eduardo Habkost <eduardo@habkost.net>, Peter Xu <peterx@redhat.com>, Jason Wang <jasowang@redhat.com>, "Cédric Le Goater" <clg@kaod.org>, Daniel Henrique Barboza <danielhb413@gmail.com>, David Gibson <david@gibson.dropbear.id.au>, "Philippe Mathieu-Daudé" <f4bug@amsat.org>, Jean-Christophe Dubois <jcd@tribudubois.net>, Keith Busch <kbusch@kernel.org>, Klaus Jensen <its@irrelevant.dk>, Yuval Shaia <yuval.shaia.ml@gmail.com>, Yoshinori Sato <ysato@users.sourceforge.jp>, Magnus Damm <magnus.damm@gmail.com>, Fabien Chouteau <chouteau@adacore.com>, KONRAD Frederic <frederic.konrad@adacore.com>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Artyom Tarasenko <atar4qemu@gmail.com>, Alex Williamson <alex.williamson@redhat.com>, Eric Auger <eric.auger@redhat.com>, Max Filippov <jcmvbkbc@gmail.com>, Juan Quintela <quintela@redhat.com>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Markus Armbruster <armbru@redhat.com>, Konstantin Kostiuk <kkostiuk@redhat.com>, Michael Roth <michael.roth@amd.com>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>, David Hildenbrand <david@redhat.com>, Wenchao Wang <wenchao.wang@intel.com>, Colin Xu <colin.xu@intel.com>, Kamil Rytarowski <kamil@netbsd.org>, Reinoud Zandijk <reinoud@netbsd.org>, Sunil Muthuswamy <sunilmut@microsoft.com>, Cornelia Huck <cohuck@redhat.com>, Thomas Huth <thuth@redhat.com>, Eric Blake <eblake@redhat.com>, Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>, John Snow <jsnow@redhat.com>
scripts/coccinelle/use-g_new-etc.cocci   | 75 ++++++++++++++++++++++++++++++++
include/qemu/timer.h                     |  2 +-
accel/kvm/kvm-all.c                      |  6 +--
accel/tcg/tcg-accel-ops-mttcg.c          |  2 +-
accel/tcg/tcg-accel-ops-rr.c             |  4 +-
audio/audio.c                            |  4 +-
audio/audio_legacy.c                     |  6 +--
audio/dsoundaudio.c                      |  2 +-
audio/jackaudio.c                        |  6 +--
audio/paaudio.c                          |  4 +-
backends/cryptodev.c                     |  2 +-
contrib/vhost-user-gpu/vhost-user-gpu.c  |  2 +-
cpus-common.c                            |  4 +-
dump/dump.c                              |  2 +-
hw/9pfs/9p-proxy.c                       |  2 +-
hw/9pfs/9p-synth.c                       |  4 +-
hw/9pfs/9p.c                             |  8 ++--
hw/9pfs/codir.c                          |  6 +--
hw/acpi/hmat.c                           |  2 +-
hw/audio/intel-hda.c                     |  2 +-
hw/char/parallel.c                       |  2 +-
hw/char/riscv_htif.c                     |  2 +-
hw/char/virtio-serial-bus.c              |  6 +--
hw/core/irq.c                            |  2 +-
hw/core/reset.c                          |  2 +-
hw/display/pxa2xx_lcd.c                  |  2 +-
hw/display/tc6393xb.c                    |  2 +-
hw/display/virtio-gpu.c                  |  4 +-
hw/display/xenfb.c                       |  4 +-
hw/dma/rc4030.c                          |  4 +-
hw/i2c/core.c                            |  4 +-
hw/i2c/i2c_mux_pca954x.c                 |  2 +-
hw/i386/amd_iommu.c                      |  4 +-
hw/i386/intel_iommu.c                    |  2 +-
hw/i386/xen/xen-hvm.c                    | 10 ++---
hw/i386/xen/xen-mapcache.c               | 14 +++---
hw/input/lasips2.c                       |  2 +-
hw/input/pckbd.c                         |  2 +-
hw/input/ps2.c                           |  4 +-
hw/input/pxa2xx_keypad.c                 |  2 +-
hw/input/tsc2005.c                       |  3 +-
hw/intc/riscv_aclint.c                   |  6 +--
hw/intc/xics.c                           |  2 +-
hw/m68k/virt.c                           |  2 +-
hw/mips/mipssim.c                        |  2 +-
hw/misc/applesmc.c                       |  2 +-
hw/misc/imx6_src.c                       |  2 +-
hw/misc/ivshmem.c                        |  4 +-
hw/net/virtio-net.c                      |  4 +-
hw/nvme/ns.c                             |  2 +-
hw/pci-host/pnv_phb3.c                   |  2 +-
hw/pci-host/pnv_phb4.c                   |  2 +-
hw/pci/pcie_sriov.c                      |  2 +-
hw/ppc/e500.c                            |  2 +-
hw/ppc/ppc.c                             |  8 ++--
hw/ppc/ppc405_boards.c                   |  4 +-
hw/ppc/ppc405_uc.c                       | 18 ++++----
hw/ppc/ppc4xx_devs.c                     |  2 +-
hw/ppc/ppc_booke.c                       |  4 +-
hw/ppc/spapr.c                           |  2 +-
hw/ppc/spapr_events.c                    |  2 +-
hw/ppc/spapr_hcall.c                     |  2 +-
hw/ppc/spapr_numa.c                      |  3 +-
hw/rdma/vmw/pvrdma_dev_ring.c            |  2 +-
hw/rdma/vmw/pvrdma_qp_ops.c              |  6 +--
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/slavio_timer.c                  |  2 +-
hw/vfio/pci.c                            |  4 +-
hw/vfio/platform.c                       |  4 +-
hw/virtio/virtio-crypto.c                |  2 +-
hw/virtio/virtio-iommu.c                 |  2 +-
hw/virtio/virtio.c                       |  5 +--
hw/xtensa/xtfpga.c                       |  2 +-
linux-user/syscall.c                     |  2 +-
migration/dirtyrate.c                    |  4 +-
migration/multifd-zlib.c                 |  4 +-
migration/ram.c                          |  2 +-
monitor/misc.c                           |  2 +-
monitor/qmp-cmds.c                       |  2 +-
qga/commands-win32.c                     |  8 ++--
qga/commands.c                           |  2 +-
qobject/block-qdict.c                    |  4 +-
qom/qom-qmp-cmds.c                       |  2 +-
replay/replay-char.c                     |  4 +-
replay/replay-events.c                   | 10 ++---
softmmu/bootdevice.c                     |  4 +-
softmmu/dma-helpers.c                    |  4 +-
softmmu/memory_mapping.c                 |  2 +-
target/i386/cpu-sysemu.c                 |  2 +-
target/i386/hax/hax-accel-ops.c          |  4 +-
target/i386/nvmm/nvmm-accel-ops.c        |  4 +-
target/i386/whpx/whpx-accel-ops.c        |  4 +-
target/i386/whpx/whpx-all.c              |  2 +-
target/s390x/cpu-sysemu.c                |  2 +-
tests/qtest/virtio-9p-test.c             |  4 +-
tests/unit/test-hbitmap.c                |  2 +-
tests/unit/test-qmp-cmds.c               | 14 +++---
tests/unit/test-qobject-output-visitor.c |  2 +-
tests/unit/test-vmstate.c                | 42 +++++++++---------
ui/vnc-enc-tight.c                       |  2 +-
util/envlist.c                           |  2 +-
util/hbitmap.c                           |  2 +-
util/main-loop.c                         |  2 +-
util/qemu-timer.c                        |  2 +-
util/vfio-helpers.c                      |  4 +-
109 files changed, 284 insertions(+), 214 deletions(-)
create mode 100644 scripts/coccinelle/use-g_new-etc.cocci
[PULL 0/4] Miscellaneous patches patches for 2022-03-21
Posted by Markus Armbruster 2 years, 1 month ago
If it's too late for trivial cleanup, I'll respin this with the last
patch dropped.

The following changes since commit 2058fdbe81e2985c226a026851dd26b146d3395c:

  Merge tag 'fixes-20220318-pull-request' of git://git.kraxel.org/qemu into staging (2022-03-19 11:28:54 +0000)

are available in the Git repository at:

  git://repo.or.cz/qemu/armbru.git tags/pull-misc-2022-03-21

for you to fetch changes up to b21e2380376c470900fcadf47507f4d5ade75e85:

  Use g_new() & friends where that makes obvious sense (2022-03-21 15:44:44 +0100)

----------------------------------------------------------------
Miscellaneous patches patches for 2022-03-21

----------------------------------------------------------------
Markus Armbruster (3):
      scripts/coccinelle: New use-g_new-etc.cocci
      9pfs: Use g_new() & friends where that makes obvious sense
      Use g_new() & friends where that makes obvious sense

Murilo Opsfelder Araujo (1):
      block-qdict: Fix -Werror=maybe-uninitialized build failure

 scripts/coccinelle/use-g_new-etc.cocci   | 75 ++++++++++++++++++++++++++++++++
 include/qemu/timer.h                     |  2 +-
 accel/kvm/kvm-all.c                      |  6 +--
 accel/tcg/tcg-accel-ops-mttcg.c          |  2 +-
 accel/tcg/tcg-accel-ops-rr.c             |  4 +-
 audio/audio.c                            |  4 +-
 audio/audio_legacy.c                     |  6 +--
 audio/dsoundaudio.c                      |  2 +-
 audio/jackaudio.c                        |  6 +--
 audio/paaudio.c                          |  4 +-
 backends/cryptodev.c                     |  2 +-
 contrib/vhost-user-gpu/vhost-user-gpu.c  |  2 +-
 cpus-common.c                            |  4 +-
 dump/dump.c                              |  2 +-
 hw/9pfs/9p-proxy.c                       |  2 +-
 hw/9pfs/9p-synth.c                       |  4 +-
 hw/9pfs/9p.c                             |  8 ++--
 hw/9pfs/codir.c                          |  6 +--
 hw/acpi/hmat.c                           |  2 +-
 hw/audio/intel-hda.c                     |  2 +-
 hw/char/parallel.c                       |  2 +-
 hw/char/riscv_htif.c                     |  2 +-
 hw/char/virtio-serial-bus.c              |  6 +--
 hw/core/irq.c                            |  2 +-
 hw/core/reset.c                          |  2 +-
 hw/display/pxa2xx_lcd.c                  |  2 +-
 hw/display/tc6393xb.c                    |  2 +-
 hw/display/virtio-gpu.c                  |  4 +-
 hw/display/xenfb.c                       |  4 +-
 hw/dma/rc4030.c                          |  4 +-
 hw/i2c/core.c                            |  4 +-
 hw/i2c/i2c_mux_pca954x.c                 |  2 +-
 hw/i386/amd_iommu.c                      |  4 +-
 hw/i386/intel_iommu.c                    |  2 +-
 hw/i386/xen/xen-hvm.c                    | 10 ++---
 hw/i386/xen/xen-mapcache.c               | 14 +++---
 hw/input/lasips2.c                       |  2 +-
 hw/input/pckbd.c                         |  2 +-
 hw/input/ps2.c                           |  4 +-
 hw/input/pxa2xx_keypad.c                 |  2 +-
 hw/input/tsc2005.c                       |  3 +-
 hw/intc/riscv_aclint.c                   |  6 +--
 hw/intc/xics.c                           |  2 +-
 hw/m68k/virt.c                           |  2 +-
 hw/mips/mipssim.c                        |  2 +-
 hw/misc/applesmc.c                       |  2 +-
 hw/misc/imx6_src.c                       |  2 +-
 hw/misc/ivshmem.c                        |  4 +-
 hw/net/virtio-net.c                      |  4 +-
 hw/nvme/ns.c                             |  2 +-
 hw/pci-host/pnv_phb3.c                   |  2 +-
 hw/pci-host/pnv_phb4.c                   |  2 +-
 hw/pci/pcie_sriov.c                      |  2 +-
 hw/ppc/e500.c                            |  2 +-
 hw/ppc/ppc.c                             |  8 ++--
 hw/ppc/ppc405_boards.c                   |  4 +-
 hw/ppc/ppc405_uc.c                       | 18 ++++----
 hw/ppc/ppc4xx_devs.c                     |  2 +-
 hw/ppc/ppc_booke.c                       |  4 +-
 hw/ppc/spapr.c                           |  2 +-
 hw/ppc/spapr_events.c                    |  2 +-
 hw/ppc/spapr_hcall.c                     |  2 +-
 hw/ppc/spapr_numa.c                      |  3 +-
 hw/rdma/vmw/pvrdma_dev_ring.c            |  2 +-
 hw/rdma/vmw/pvrdma_qp_ops.c              |  6 +--
 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/slavio_timer.c                  |  2 +-
 hw/vfio/pci.c                            |  4 +-
 hw/vfio/platform.c                       |  4 +-
 hw/virtio/virtio-crypto.c                |  2 +-
 hw/virtio/virtio-iommu.c                 |  2 +-
 hw/virtio/virtio.c                       |  5 +--
 hw/xtensa/xtfpga.c                       |  2 +-
 linux-user/syscall.c                     |  2 +-
 migration/dirtyrate.c                    |  4 +-
 migration/multifd-zlib.c                 |  4 +-
 migration/ram.c                          |  2 +-
 monitor/misc.c                           |  2 +-
 monitor/qmp-cmds.c                       |  2 +-
 qga/commands-win32.c                     |  8 ++--
 qga/commands.c                           |  2 +-
 qobject/block-qdict.c                    |  4 +-
 qom/qom-qmp-cmds.c                       |  2 +-
 replay/replay-char.c                     |  4 +-
 replay/replay-events.c                   | 10 ++---
 softmmu/bootdevice.c                     |  4 +-
 softmmu/dma-helpers.c                    |  4 +-
 softmmu/memory_mapping.c                 |  2 +-
 target/i386/cpu-sysemu.c                 |  2 +-
 target/i386/hax/hax-accel-ops.c          |  4 +-
 target/i386/nvmm/nvmm-accel-ops.c        |  4 +-
 target/i386/whpx/whpx-accel-ops.c        |  4 +-
 target/i386/whpx/whpx-all.c              |  2 +-
 target/s390x/cpu-sysemu.c                |  2 +-
 tests/qtest/virtio-9p-test.c             |  4 +-
 tests/unit/test-hbitmap.c                |  2 +-
 tests/unit/test-qmp-cmds.c               | 14 +++---
 tests/unit/test-qobject-output-visitor.c |  2 +-
 tests/unit/test-vmstate.c                | 42 +++++++++---------
 ui/vnc-enc-tight.c                       |  2 +-
 util/envlist.c                           |  2 +-
 util/hbitmap.c                           |  2 +-
 util/main-loop.c                         |  2 +-
 util/qemu-timer.c                        |  2 +-
 util/vfio-helpers.c                      |  4 +-
 109 files changed, 284 insertions(+), 214 deletions(-)
 create mode 100644 scripts/coccinelle/use-g_new-etc.cocci

-- 
2.35.1
Re: [PULL 0/4] Miscellaneous patches patches for 2022-03-21
Posted by Peter Maydell 2 years, 1 month ago
On Mon, 21 Mar 2022 at 14:59, Markus Armbruster <armbru@redhat.com> wrote:
>
> If it's too late for trivial cleanup, I'll respin this with the last
> patch dropped.
>
> The following changes since commit 2058fdbe81e2985c226a026851dd26b146d3395c:
>
>   Merge tag 'fixes-20220318-pull-request' of git://git.kraxel.org/qemu into staging (2022-03-19 11:28:54 +0000)
>
> are available in the Git repository at:
>
>   git://repo.or.cz/qemu/armbru.git tags/pull-misc-2022-03-21
>
> for you to fetch changes up to b21e2380376c470900fcadf47507f4d5ade75e85:
>
>   Use g_new() & friends where that makes obvious sense (2022-03-21 15:44:44 +0100)
>
> ----------------------------------------------------------------
> Miscellaneous patches patches for 2022-03-21
>


Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/7.0
for any user-visible changes.

-- PMM