summaryrefslogtreecommitdiffstats
path: root/include/hw/acpi
diff options
context:
space:
mode:
authorIgor Mammedov2017-01-18 18:13:20 +0100
committerEduardo Habkost2017-01-24 00:25:37 +0100
commit80e5db303dc82e357df923dc2bfcb858c20282a0 (patch)
tree5902487b6664ae674e4e466fbc266247b9e5f5d6 /include/hw/acpi
parentpc: don't return cpu pointer from pc_new_cpu() as it's not needed anymore (diff)
downloadqemu-80e5db303dc82e357df923dc2bfcb858c20282a0.tar.gz
qemu-80e5db303dc82e357df923dc2bfcb858c20282a0.tar.xz
qemu-80e5db303dc82e357df923dc2bfcb858c20282a0.zip
machine: Make possible_cpu_arch_ids() return const pointer
make sure that external callers won't try to modify possible_cpus and owner of possible_cpus can access it directly when it modifies it. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <1484759609-264075-5-git-send-email-imammedo@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/hw/acpi')
-rw-r--r--include/hw/acpi/acpi_dev_interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/acpi/acpi_dev_interface.h b/include/hw/acpi/acpi_dev_interface.h
index 901a4ae876..71d3c48e7d 100644
--- a/include/hw/acpi/acpi_dev_interface.h
+++ b/include/hw/acpi/acpi_dev_interface.h
@@ -57,6 +57,6 @@ typedef struct AcpiDeviceIfClass {
void (*ospm_status)(AcpiDeviceIf *adev, ACPIOSTInfoList ***list);
void (*send_event)(AcpiDeviceIf *adev, AcpiEventStatusBits ev);
void (*madt_cpu)(AcpiDeviceIf *adev, int uid,
- CPUArchIdList *apic_ids, GArray *entry);
+ const CPUArchIdList *apic_ids, GArray *entry);
} AcpiDeviceIfClass;
#endif