mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/pci: Clean up global variable shadowing of address_space_io variable
Fix: hw/pci/pci.c:504:54: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] MemoryRegion *address_space_io, ^ hw/pci/pci.c:533:38: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] MemoryRegion *address_space_io, ^ hw/pci/pci.c:543:40: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] MemoryRegion *address_space_io, ^ hw/pci/pci.c:590:45: 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> Acked-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <20231010115048.11856-6-philmd@linaro.org>
This commit is contained in:
parent
305ab2b971
commit
49909a0d03
2 changed files with 12 additions and 22 deletions
|
@ -279,12 +279,10 @@ bool pci_bus_is_express(const PCIBus *bus);
|
|||
|
||||
void pci_root_bus_init(PCIBus *bus, size_t bus_size, DeviceState *parent,
|
||||
const char *name,
|
||||
MemoryRegion *address_space_mem,
|
||||
MemoryRegion *address_space_io,
|
||||
MemoryRegion *mem, MemoryRegion *io,
|
||||
uint8_t devfn_min, const char *typename);
|
||||
PCIBus *pci_root_bus_new(DeviceState *parent, const char *name,
|
||||
MemoryRegion *address_space_mem,
|
||||
MemoryRegion *address_space_io,
|
||||
MemoryRegion *mem, MemoryRegion *io,
|
||||
uint8_t devfn_min, const char *typename);
|
||||
void pci_root_bus_cleanup(PCIBus *bus);
|
||||
void pci_bus_irqs(PCIBus *bus, pci_set_irq_fn set_irq,
|
||||
|
@ -304,8 +302,7 @@ int pci_swizzle_map_irq_fn(PCIDevice *pci_dev, int pin);
|
|||
PCIBus *pci_register_root_bus(DeviceState *parent, const char *name,
|
||||
pci_set_irq_fn set_irq, pci_map_irq_fn map_irq,
|
||||
void *irq_opaque,
|
||||
MemoryRegion *address_space_mem,
|
||||
MemoryRegion *address_space_io,
|
||||
MemoryRegion *mem, MemoryRegion *io,
|
||||
uint8_t devfn_min, int nirq,
|
||||
const char *typename);
|
||||
void pci_unregister_root_bus(PCIBus *bus);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue