]> git.proxmox.com Git - mirror_qemu.git/commit
hw/cpu: Clean up global variable shadowing
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 9 Oct 2023 07:02:04 +0000 (09:02 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 7 Nov 2023 12:08:48 +0000 (13:08 +0100)
commit3c55dd5896d687b5d5e61e8eec07b8bb2931713a
tree076180df059e848bd29951c7893d28290d03f577
parent79a99091c1af7783a13c21ab5e4049265fcbb1d1
hw/cpu: Clean up global variable shadowing

Fix:

  hw/core/machine.c:1302:22: error: declaration shadows a variable in the global scope [-Werror,-Wshadow]
      const CPUArchId *cpus = possible_cpus->cpus;
                       ^
  hw/core/numa.c:69:17: error: declaration shadows a variable in the global scope [-Werror,-Wshadow]
      uint16List *cpus = NULL;
                  ^
  hw/acpi/aml-build.c:2005:20: error: declaration shadows a variable in the global scope [-Werror,-Wshadow]
      CPUArchIdList *cpus = ms->possible_cpus;
                     ^
  hw/core/machine-smp.c:77:14: error: declaration shadows a variable in the global scope [-Werror,-Wshadow]
      unsigned cpus    = config->has_cpus ? config->cpus : 0;
               ^
  include/hw/core/cpu.h:589:17: note: previous declaration is here
  extern CPUTailQ cpus;
                  ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Ani Sinha <anisinha@redhat.com>
Message-Id: <20231010115048.11856-2-philmd@linaro.org>
bsd-user/main.c
cpu-common.c
include/hw/core/cpu.h
linux-user/main.c
target/s390x/cpu_models.c