[PULL 00/32] -Wshadow=local patches patches for 2023-10-06

Markus Armbruster posted 32 patches 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20231006113657.3803180-1-armbru@redhat.com
Maintainers: Gerd Hoffmann <kraxel@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Jonathan Cameron <jonathan.cameron@huawei.com>, Fan Ni <fan.ni@samsung.com>, Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Eduardo Habkost <eduardo@habkost.net>, "Michael S. Tsirkin" <mst@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, John Snow <jsnow@redhat.com>, Xiaojuan Yang <yangxiaojuan@loongson.cn>, Song Gao <gaosong@loongson.cn>, Jason Wang <jasowang@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, "Alex Bennée" <alex.bennee@linaro.org>, Stefan Berger <stefanb@linux.vnet.ibm.com>, Laurent Vivier <laurent@vivier.eu>, Alexandre Iooss <erdnaxe@crans.org>, Mahmoud Mandour <ma.mandourr@gmail.com>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, Nicholas Piggin <npiggin@gmail.com>, Daniel Henrique Barboza <danielhb413@gmail.com>, "Cédric Le Goater" <clg@kaod.org>, Stefan Hajnoczi <stefanha@redhat.com>, Mads Ynddal <mads@ynddal.dk>, Peter Maydell <peter.maydell@linaro.org>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Akihiko Odaki <akihiko.odaki@daynix.com>
include/hw/audio/soundhw.h      |  2 +-
include/net/net.h               |  6 +++---
include/qemu/guest-random.h     |  8 ++++----
include/qemu/plugin.h           |  4 ++--
include/qom/object_interfaces.h | 16 ++++++++--------
include/semihosting/semihost.h  |  2 +-
include/sysemu/os-posix.h       |  4 ++--
include/sysemu/tpm.h            |  2 +-
trace/control.h                 |  4 ++--
audio/ossaudio.c                |  1 -
dump/dump.c                     |  8 ++++----
hw/audio/soundhw.c              |  6 +++---
hw/cxl/cxl-device-utils.c       |  8 ++++----
hw/i386/acpi-microvm.c          |  4 ++--
hw/i386/pc.c                    |  1 -
hw/i386/x86.c                   |  2 --
hw/ide/ahci.c                   |  4 +---
hw/loongarch/virt.c             |  2 +-
hw/net/vhost_net.c              |  8 ++++----
hw/usb/desc.c                   |  2 +-
hw/usb/dev-hub.c                |  8 ++++----
hw/usb/dev-storage.c            |  6 +++---
hw/usb/hcd-xhci.c               | 10 +++++-----
hw/usb/host-libusb.c            |  2 +-
hw/virtio/vhost.c               |  8 ++++----
hw/virtio/virtio-pci.c          | 20 ++++++++++----------
linux-user/flatload.c           |  8 ++++----
linux-user/mmap.c               |  6 +++---
linux-user/syscall.c            | 36 ++++++++++++++++++------------------
net/net.c                       | 14 +++++++-------
os-posix.c                      | 12 ++++++------
plugins/loader.c                |  4 ++--
qemu-img.c                      | 22 +++++++++++-----------
qemu-io.c                       |  4 ++--
qom/object_interfaces.c         | 16 ++++++++--------
semihosting/arm-compat-semi.c   |  5 ++++-
semihosting/config.c            |  8 ++++----
softmmu/tpm.c                   |  6 +++---
softmmu/vl.c                    | 26 +++++++++++++-------------
stubs/semihost.c                |  2 +-
target/ppc/int_helper.c         | 12 ++++++------
target/ppc/kvm.c                |  4 ----
trace/control.c                 |  4 ++--
util/cutils.c                   |  1 -
util/guest-random.c             |  6 +++---
ui/cocoa.m                      |  4 ++--
46 files changed, 170 insertions(+), 178 deletions(-)
[PULL 00/32] -Wshadow=local patches patches for 2023-10-06
Posted by Markus Armbruster 7 months ago
The following changes since commit 2f3913f4b2ad74baeb5a6f1d36efbd9ecdf1057d:

  Merge tag 'for_upstream' of https://git.kernel.org/pub/scm/virt/kvm/mst/qemu into staging (2023-10-05 09:01:01 -0400)

are available in the Git repository at:

  https://repo.or.cz/qemu/armbru.git tags/pull-shadow-2023-10-06

for you to fetch changes up to 77c9f177e02dccd8688eba9550a4fb961742a638:

  linux-user/syscall.c: clean up local variable shadowing in xattr syscalls (2023-10-06 13:27:48 +0200)

----------------------------------------------------------------
-Wshadow=local patches patches for 2023-10-06

----------------------------------------------------------------
Ani Sinha (1):
      hw/i386: changes towards enabling -Wshadow=local for x86 machines

Cédric Le Goater (2):
      target/ppc: Rename variables to avoid local variable shadowing in VUPKPX
      target/ppc: Clean up local variable shadowing in kvm_arch_*_registers()

Jonathan Cameron (1):
      hw/cxl: Fix local variable shadowing of cap_hdrs

Laurent Vivier (5):
      linux-user/flatload: clean up local variable shadowing
      linux-user/mmap.c: clean up local variable shadowing
      linux-user/syscall.c: clean up local variable shadowing in do_ioctl_dm()
      linux-user/syscall.c: clean up local variable shadowing in TARGET_NR_getcpu
      linux-user/syscall.c: clean up local variable shadowing in xattr syscalls

Philippe Mathieu-Daudé (16):
      hw/audio/soundhw: Clean up global variable shadowing
      hw/ide/ahci: Clean up local variable shadowing
      net/net: Clean up global variable shadowing
      os-posix: Clean up global variable shadowing
      plugins/loader: Clean up global variable shadowing
      qemu-img: Clean up global variable shadowing
      qemu-io: Clean up global variable shadowing
      qom/object_interfaces: Clean up global variable shadowing
      semihosting: Clean up global variable shadowing
      ui/cocoa: Clean up global variable shadowing
      util/cutils: Clean up global variable shadowing in get_relocated_path()
      util/guest-random: Clean up global variable shadowing
      semihosting/arm-compat: Clean up local variable shadowing
      softmmu/vl: Clean up global variable shadowing
      sysemu/tpm: Clean up global variable shadowing
      trace/control: Clean up global variable shadowing

Song Gao (1):
      target/loongarch: Clean up local variable shadowing

Thomas Huth (6):
      audio/ossaudio: Fix compiler warning with -Wshadow
      hw/net/vhost_net: Silence compiler warning when compiling with -Wshadow
      hw/virtio/virtio-pci: Avoid compiler warning with -Wshadow
      hw/virtio/vhost: Silence compiler warnings in vhost code when using -Wshadow
      dump: Silence compiler warning in dump code when compiling with -Wshadow
      hw/usb: Silence compiler warnings in USB code when compiling with -Wshadow

 include/hw/audio/soundhw.h      |  2 +-
 include/net/net.h               |  6 +++---
 include/qemu/guest-random.h     |  8 ++++----
 include/qemu/plugin.h           |  4 ++--
 include/qom/object_interfaces.h | 16 ++++++++--------
 include/semihosting/semihost.h  |  2 +-
 include/sysemu/os-posix.h       |  4 ++--
 include/sysemu/tpm.h            |  2 +-
 trace/control.h                 |  4 ++--
 audio/ossaudio.c                |  1 -
 dump/dump.c                     |  8 ++++----
 hw/audio/soundhw.c              |  6 +++---
 hw/cxl/cxl-device-utils.c       |  8 ++++----
 hw/i386/acpi-microvm.c          |  4 ++--
 hw/i386/pc.c                    |  1 -
 hw/i386/x86.c                   |  2 --
 hw/ide/ahci.c                   |  4 +---
 hw/loongarch/virt.c             |  2 +-
 hw/net/vhost_net.c              |  8 ++++----
 hw/usb/desc.c                   |  2 +-
 hw/usb/dev-hub.c                |  8 ++++----
 hw/usb/dev-storage.c            |  6 +++---
 hw/usb/hcd-xhci.c               | 10 +++++-----
 hw/usb/host-libusb.c            |  2 +-
 hw/virtio/vhost.c               |  8 ++++----
 hw/virtio/virtio-pci.c          | 20 ++++++++++----------
 linux-user/flatload.c           |  8 ++++----
 linux-user/mmap.c               |  6 +++---
 linux-user/syscall.c            | 36 ++++++++++++++++++------------------
 net/net.c                       | 14 +++++++-------
 os-posix.c                      | 12 ++++++------
 plugins/loader.c                |  4 ++--
 qemu-img.c                      | 22 +++++++++++-----------
 qemu-io.c                       |  4 ++--
 qom/object_interfaces.c         | 16 ++++++++--------
 semihosting/arm-compat-semi.c   |  5 ++++-
 semihosting/config.c            |  8 ++++----
 softmmu/tpm.c                   |  6 +++---
 softmmu/vl.c                    | 26 +++++++++++++-------------
 stubs/semihost.c                |  2 +-
 target/ppc/int_helper.c         | 12 ++++++------
 target/ppc/kvm.c                |  4 ----
 trace/control.c                 |  4 ++--
 util/cutils.c                   |  1 -
 util/guest-random.c             |  6 +++---
 ui/cocoa.m                      |  4 ++--
 46 files changed, 170 insertions(+), 178 deletions(-)

-- 
2.41.0


Re: [PULL 00/32] -Wshadow=local patches patches for 2023-10-06
Posted by Stefan Hajnoczi 6 months, 4 weeks ago
Applied, thanks.

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