[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] pc: acpi: fix build fail on w32
From: |
Igor Mammedov |
Subject: |
[Qemu-devel] [PATCH] pc: acpi: fix build fail on w32 |
Date: |
Fri, 8 Jan 2016 18:34:15 +0100 |
build fail with warnings on w32 compiler:
hw/acpi/memory_hotplug_acpi_table.c:
In function ‘build_memory_hotplug_aml’:
hw/acpi/memory_hotplug_acpi_table.c:148:
warning: integer constant is too large for ‘long’ type
hw/acpi/memory_hotplug_acpi_table.c:149:
warning: integer constant is too large for ‘long’ type
fix it by expilictly saying that int const is 64bit number
Signed-off-by: Igor Mammedov <address@hidden>
---
hw/acpi/memory_hotplug_acpi_table.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/acpi/memory_hotplug_acpi_table.c
b/hw/acpi/memory_hotplug_acpi_table.c
index 20728ac..080d9ad 100644
--- a/hw/acpi/memory_hotplug_acpi_table.c
+++ b/hw/acpi/memory_hotplug_acpi_table.c
@@ -145,8 +145,8 @@ void build_memory_hotplug_aml(Aml *ctx, uint32_t nr_mem,
aml_append(crs_tmpl,
aml_qword_memory(AML_POS_DECODE, AML_MIN_FIXED, AML_MAX_FIXED,
AML_CACHEABLE, AML_READ_WRITE,
- 0, 0x0, 0xFFFFFFFFFFFFFFFE, 0,
- 0xFFFFFFFFFFFFFFFF));
+ 0, 0x0, 0xFFFFFFFFFFFFFFFEULL, 0,
+ 0xFFFFFFFFFFFFFFFFULL));
aml_append(method, aml_name_decl("MR64", crs_tmpl));
aml_append(method,
aml_create_dword_field(mr64, aml_int(14), "MINL"));
--
1.8.3.1
- [Qemu-devel] [PULL 56/59] Add VMSTATE_STRUCT_VARRAY_KNOWN, (continued)
- [Qemu-devel] [PULL 56/59] Add VMSTATE_STRUCT_VARRAY_KNOWN, Michael S. Tsirkin, 2016/01/08
- [Qemu-devel] [PULL 55/59] i386/pc: expose identifying the floppy controller, Michael S. Tsirkin, 2016/01/08
- [Qemu-devel] [PULL 57/59] migration/virtio: Remove simple .get/.put use, Michael S. Tsirkin, 2016/01/08
- [Qemu-devel] [PULL 58/59] ivshmem: Store file descriptor for vhost-user negotiation, Michael S. Tsirkin, 2016/01/08
- [Qemu-devel] [PULL 59/59] virtio: fix error message for number of queues, Michael S. Tsirkin, 2016/01/08
- [Qemu-devel] [PULL 54/59] pc: acpi: remove unused ASL templates and related blobs/utils, Michael S. Tsirkin, 2016/01/08
- [Qemu-devel] [PULL 01/59] nvdimm: fix header pointer in nvdimm_build_nfit(), Michael S. Tsirkin, 2016/01/08
- [Qemu-devel] [PULL 02/59] igd-passthrough: fix use of host_pci_config_read, Michael S. Tsirkin, 2016/01/08
- [Qemu-devel] [PULL 03/59] hw/i386: fill in the CENTURY field of the FADT (FACP) ACPI table, Michael S. Tsirkin, 2016/01/08
- Re: [Qemu-devel] [PULL 00/59] acpi dsdt rework, misc fixes, Peter Maydell, 2016/01/08
- [Qemu-devel] [PATCH] pc: acpi: fix build fail on w32,
Igor Mammedov <=