From: Philippe Mathieu-Daudé Date: Fri, 28 Feb 2020 11:46:41 +0000 (+0100) Subject: hw/acpi/cpu_hotplug: Include "hw/pci/pci.h" X-Git-Tag: v5.0.0-rc0~49^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=38e131d2e2fa6e9b17782d7ce96e7207fa276562;p=thirdparty%2Fqemu.git hw/acpi/cpu_hotplug: Include "hw/pci/pci.h" hw/acpi/cpu_hotplug.c calls pci_address_space_io(). Include "hw/pci/pci.h" which declares it. This fixes (when modifying unrelated headers): hw/acpi/cpu_hotplug.c:103:28: error: implicit declaration of function 'pci_address_space_io' is invalid in C99 [-Werror,-Wimplicit-function-declaration] MemoryRegion *parent = pci_address_space_io(PCI_DEVICE(gpe_cpu->device)); ^ Acked-by: John Snow Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20200228114649.12818-11-philmd@redhat.com> Signed-off-by: Laurent Vivier --- diff --git a/hw/acpi/cpu_hotplug.c b/hw/acpi/cpu_hotplug.c index 9c3bcc84de5..3e687d227a6 100644 --- a/hw/acpi/cpu_hotplug.c +++ b/hw/acpi/cpu_hotplug.c @@ -14,6 +14,7 @@ #include "qapi/error.h" #include "hw/core/cpu.h" #include "hw/i386/pc.h" +#include "hw/pci/pci.h" #include "qemu/error-report.h" #define CPU_EJECT_METHOD "CPEJ"