[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 16/20] hw/pci-host/piix: Include "qemu/range.h"
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 16/20] hw/pci-host/piix: Include "qemu/range.h" |
Date: |
Mon, 14 Oct 2019 16:22:42 +0200 |
hw/pci-host/piix.c calls various functions from the Range API.
Include "qemu/range.h" which declares them.
This fixes (when modifying unrelated headers):
hw/pci-host/i440fx.c:54:11: error: field has incomplete type 'Range' (aka
'struct Range')
Range pci_hole;
^
include/qemu/typedefs.h:116:16: note: forward declaration of 'struct Range'
typedef struct Range Range;
^
hw/pci-host/i440fx.c:126:9: error: implicit declaration of function
'ranges_overlap' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (ranges_overlap(address, len, I440FX_PAM, I440FX_PAM_SIZE) ||
^
hw/pci-host/i440fx.c:126:9: error: this function declaration is not a
prototype [-Werror,-Wstrict-prototypes]
hw/pci-host/i440fx.c:127:9: error: implicit declaration of function
'range_covers_byte' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
range_covers_byte(address, len, I440FX_SMRAM)) {
^
hw/pci-host/i440fx.c:127:9: error: this function declaration is not a
prototype [-Werror,-Wstrict-prototypes]
hw/pci-host/i440fx.c:189:13: error: implicit declaration of function
'range_is_empty' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
val64 = range_is_empty(&s->pci_hole) ? 0 : range_lob(&s->pci_hole);
^
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/pci-host/piix.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c
index 135c645535..76ed252a60 100644
--- a/hw/pci-host/piix.c
+++ b/hw/pci-host/piix.c
@@ -23,6 +23,7 @@
*/
#include "qemu/osdep.h"
+#include "qemu/range.h"
#include "hw/i386/pc.h"
#include "hw/irq.h"
#include "hw/pci/pci.h"
--
2.21.0
- [PATCH 07/20] hw/i386/intel_iommu: Remove unused includes, (continued)
- [PATCH 07/20] hw/i386/intel_iommu: Remove unused includes, Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 08/20] hw/xen/xen_pt_load_rom: Remove unused includes, Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 09/20] hw/alpha/alpha_sys: Remove unused "hw/ide.h" header, Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 10/20] hw/alpha/dp264: Include "net/net.h", Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 11/20] hw/hppa/machine: Include "net/net.h", Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 12/20] hw/acpi/cpu_hotplug: Include "hw/pci/pci.h", Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 13/20] hw/timer/hpet: Include "exec/address-spaces.h", Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 14/20] hw/pci-host/q35: Include "qemu/range.h", Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 15/20] hw/i2c/smbus_ich9: Include "qemu/range.h", Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 16/20] hw/pci-host/piix: Include "qemu/range.h",
Philippe Mathieu-Daudé <=
- [PATCH 17/20] hw/acpi: Include "hw/mem/nvdimm.h", Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 18/20] hw/i386: Include "hw/mem/nvdimm.h", Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 19/20] hw/pci-host/q35: Remove unused includes, Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 20/20] hw/i386/pc: Clean up includes, Philippe Mathieu-Daudé, 2019/10/14
- Re: [PATCH 00/20] hw: Clean up hw/i386 headers (and few alpha/hppa), John Snow, 2019/10/14
- Re: [PATCH 00/20] hw: Clean up hw/i386 headers (and few alpha/hppa), Philippe Mathieu-Daudé, 2019/10/26