qemu/bsd-user
Philippe Mathieu-Daudé 3c55dd5896 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>
2023-11-07 13:08:48 +01:00
..
arm target/arm: Move feature test functions to their own header 2023-10-27 11:44:32 +01:00
freebsd bsd-user: Add stubs for vadvise(), sbrk() and sstk() 2023-10-03 17:14:07 -06:00
host bsd-user: Catch up with sys/param.h requirement for machine/pmap.h 2022-10-26 14:09:17 -06:00
i386 bsd-user: Remove ELF_START_MMAP and image_info.start_mmap 2023-08-28 12:16:18 -06:00
include user: move common-user includes to a subdirectory of {bsd,linux}-user/ 2022-01-12 14:08:29 +01:00
netbsd Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
openbsd Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
x86_64 bsd-user: Remove ELF_START_MMAP and image_info.start_mmap 2023-08-28 12:16:18 -06:00
bsd-file.h bulk: Do not declare function prototypes using 'extern' keyword 2023-08-31 19:47:43 +02:00
bsd-mem.c bsd-user: Implement shmid_ds conversion between host and target. 2023-10-03 17:14:07 -06:00
bsd-mem.h bsd-user: Add stubs for vadvise(), sbrk() and sstk() 2023-10-03 17:14:07 -06:00
bsd-proc.c bsd-user: Get number of cpus. 2023-10-03 17:14:06 -06:00
bsd-proc.h accel: Introduce AccelClass::cpu_common_[un]realize 2023-10-05 08:55:34 -04:00
bsdload.c bsd-user: TARGET_NGROUPS unused in this file, remove 2021-09-10 14:13:06 -06:00
elfcore.c bsd-user: add stubbed out core dump support 2021-09-10 14:13:06 -06:00
elfload.c bsd-user: Remove image_info.start_brk 2023-08-28 12:16:18 -06:00
errno_defs.h bsd-user: spelling fixes 2023-09-20 07:54:34 +03:00
main.c hw/cpu: Clean up global variable shadowing 2023-11-07 13:08:48 +01:00
meson.build bsd-user: Add bsd-mem.c to meson.build 2023-10-03 17:14:06 -06:00
mmap.c bsd-user: Implement shmat(2) and shmdt(2) 2023-10-03 17:14:07 -06:00
qemu-bsd.h bsd-user: Declarations for ipc_perm and shmid_ds conversion functions 2023-10-03 17:14:06 -06:00
qemu.h bsd-user: Implement shmat(2) and shmdt(2) 2023-10-03 17:14:07 -06:00
signal-common.h bsd-user: Implement host_to_target_siginfo. 2023-10-03 17:14:06 -06:00
signal.c accel: Introduce AccelClass::cpu_common_[un]realize 2023-10-05 08:55:34 -04:00
strace.c bsd-user: Clean up includes 2023-02-08 07:16:23 +01:00
syscall_defs.h bsd-user: Implment madvise(2) to match the linux-user implementation. 2023-10-03 17:14:07 -06:00
trace-events trace-events: Fix the name of the tracing.rst file 2023-09-08 13:08:51 +03:00
trace.h bsd-user: Add trace events for bsd-user 2022-01-28 15:53:41 -07:00
uaccess.c bsd-user: style tweak: keyword space ( 2021-05-11 11:07:22 -06:00