hw/pci: remove all references to find_i440fx function
PATCH 1/1 hw/pci: remove all references to find_i440fx function
commit c0e427d6eb5fefc538 ("hw/acpi/ich9: Enable ACPI PCI hot-plug") removed all uses of find_i440fx() function. This has been replaced by the more generic call acpi_get_i386_pci_host() which maybe able to find the root bus both for i440fx machine type as well as for the q35 machine type. There seems to be no more any need to maintain a i440fx specific version of the api call. Remove it.
Tested by building from a clean tree successfully.
--- hw/pci-host/i440fx.c | 8 -------- include/hw/pci-host/i440fx.h | 1 - stubs/meson.build | 1 - stubs/pci-host-piix.c | 7 ------- 4 files changed, 17 deletions(-) delete mode 100644 stubs/pci-host-piix.c
hw/pci-host/i440fx.c +0 -8
@@ -314,14 +314,6 @@ PCIBus *i440fx_init(const char *host_type, const char *pci_type,return b; } -PCIBus *find_i440fx (void ) -{ -PCIHostState *s =OBJECT_CHECK (PCIHostState, -object_resolve_path ("/machine/i440fx" ,NULL ), -TYPE_PCI_HOST_BRIDGE ); -return s ? s->bus :NULL ; -} -static void i440fx_class_init (ObjectClass *klass,void *data) {DeviceClass *dc =DEVICE_CLASS (klass);
include/hw/pci-host/i440fx.h +0 -1
@@ -45,6 +45,5 @@ PCIBus *i440fx_init(const char *host_type, const char *pci_type, MemoryRegion *pci_memory, MemoryRegion *ram_memory); -PCIBus *find_i440fx (void );#endif
stubs/meson.build +0 -1
@@ -27,7 +27,6 @@ stub_ss.add(files('module-opts.c')) stub_ss.add(files('monitor.c')) stub_ss.add(files('monitor-core.c')) stub_ss.add(files('pci-bus.c')) -stub_ss.add(files('pci-host-piix.c')) stub_ss.add(files('qemu-timer-notify-cb.c')) stub_ss.add(files('qmp_memory_device.c')) stub_ss.add(files('qmp-command-available.c'))
stubs/pci-host-piix.c deleted +0 -7
@@ -1,7 +0,0 @@ -#include "qemu/osdep.h" -#include "hw/pci-host/i440fx.h" - -PCIBus *find_i440fx (void ) -{ -return NULL ; -}
Signature · 1 line
2.17.1
Quoted 9 lines · Ani Sinha
commit
c0e427d6eb5fefc538("hw/acpi/ich9: Enable ACPI PCI hot-plug") removed all uses offind_i440fx()function. This has been replaced by the more generic callacpi_get_i386_pci_host()which maybe able to find the root bus both for i440fx machine type as well as for the q35 machine type. There seems to be no more any need to maintain a i440fx specific version of the api call. Remove it.Tested by building from a clean tree successfully.
Quoted 9 lines
Signed-off-by Ani Sinha <[email protected]>--- hw/pci-host/i440fx.c | 8 -------- include/hw/pci-host/i440fx.h | 1 - stubs/meson.build | 1 - stubs/pci-host-piix.c | 7 ------- 4 files changed, 17 deletions(-) delete mode 100644 stubs/pci-host-piix.c
thanks
-- PMM
Quoted 5 lines · Ani Sinha
commit
c0e427d6eb5fefc538("hw/acpi/ich9: Enable ACPI PCI hot-plug") removed all uses offind_i440fx()function. This has been replaced by the more generic callacpi_get_i386_pci_host()which maybe able to find the root bus both for i440fx machine type as well as for the q35 machine type. There seems to be no more any need to maintain a i440fx specific version of the api call. Remove it.
Yay!
Quoted 10 lines
Tested by building from a clean tree successfully.
Signed-off-by Ani Sinha <[email protected]>--- hw/pci-host/i440fx.c | 8 -------- include/hw/pci-host/i440fx.h | 1 - stubs/meson.build | 1 - stubs/pci-host-piix.c | 7 ------- 4 files changed, 17 deletions(-) delete mode 100644 stubs/pci-host-piix.c
Quoted 8 lines · Philippe Mathieu-Daudé
Quoted 5 lines · Ani Sinha
commit
c0e427d6eb5fefc538("hw/acpi/ich9: Enable ACPI PCI hot-plug") removed all uses offind_i440fx()function. This has been replaced by the more generic callacpi_get_i386_pci_host()which maybe able to find the root bus both for i440fx machine type as well as for the q35 machine type. There seems to be no more any need to maintain a i440fx specific version of the api call. Remove it.Yay!
Thanks to Julia for making it happen. I was wondering when I shall see these patches ...
Quoted 14 lines
Reviewed-by Philippe Mathieu-Daudé <[email protected]>Quoted 10 lines
Tested by building from a clean tree successfully.
Signed-off-by Ani Sinha <[email protected]>--- hw/pci-host/i440fx.c | 8 -------- include/hw/pci-host/i440fx.h | 1 - stubs/meson.build | 1 - stubs/pci-host-piix.c | 7 ------- 4 files changed, 17 deletions(-) delete mode 100644 stubs/pci-host-piix.c