]> git.proxmox.com Git - mirror_qemu.git/commit
hw/acpi/pcihp: Clean up global variable shadowing in acpi_pcihp_init()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 9 Oct 2023 08:13:41 +0000 (10:13 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 20 Oct 2023 12:46:07 +0000 (14:46 +0200)
commit2277fbfde16582b76254f8bbbebfb969d0dbef3c
tree7bdc3fc4fa6873d7faac8da410c1fdedbceba3ae
parent203713b581e6b1d5095a2703e41172b9f2211d66
hw/acpi/pcihp: Clean up global variable shadowing in acpi_pcihp_init()

Fix:

  hw/acpi/pcihp.c:499:36: error: declaration shadows a variable in the global scope [-Werror,-Wshadow]
                       MemoryRegion *address_space_io,
                                     ^
  include/exec/address-spaces.h:35:21: note: previous declaration is here
  extern AddressSpace address_space_io;
                      ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Ani Sinha <anisinha@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20231010115048.11856-5-philmd@linaro.org>
hw/acpi/pcihp.c
include/hw/acpi/pcihp.h