[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 13/71] hw/acpi: Constify all Property
From: |
Richard Henderson |
Subject: |
[PATCH 13/71] hw/acpi: Constify all Property |
Date: |
Fri, 13 Dec 2024 13:06:47 -0600 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/acpi/erst.c | 2 +-
hw/acpi/generic_event_device.c | 2 +-
hw/acpi/piix4.c | 2 +-
hw/acpi/vmgenid.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/acpi/erst.c b/hw/acpi/erst.c
index a108cfe49b..5ef5ddccb6 100644
--- a/hw/acpi/erst.c
+++ b/hw/acpi/erst.c
@@ -1011,7 +1011,7 @@ static void erst_reset(DeviceState *dev)
trace_acpi_erst_reset_out(le32_to_cpu(s->header->record_count));
}
-static Property erst_properties[] = {
+static const Property erst_properties[] = {
DEFINE_PROP_LINK(ACPI_ERST_MEMDEV_PROP, ERSTDeviceState, hostmem,
TYPE_MEMORY_BACKEND, HostMemoryBackend *),
DEFINE_PROP_UINT32(ACPI_ERST_RECORD_SIZE_PROP, ERSTDeviceState,
diff --git a/hw/acpi/generic_event_device.c b/hw/acpi/generic_event_device.c
index 663d9cb093..8c4706f8cf 100644
--- a/hw/acpi/generic_event_device.c
+++ b/hw/acpi/generic_event_device.c
@@ -316,7 +316,7 @@ static void acpi_ged_send_event(AcpiDeviceIf *adev,
AcpiEventStatusBits ev)
qemu_irq_pulse(s->irq);
}
-static Property acpi_ged_properties[] = {
+static const Property acpi_ged_properties[] = {
DEFINE_PROP_UINT32("ged-event", AcpiGedState, ged_event_bitmap, 0),
DEFINE_PROP_END_OF_LIST(),
};
diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c
index 1de3fe3261..2bfaf5a38d 100644
--- a/hw/acpi/piix4.c
+++ b/hw/acpi/piix4.c
@@ -602,7 +602,7 @@ static void piix4_send_gpe(AcpiDeviceIf *adev,
AcpiEventStatusBits ev)
acpi_send_gpe_event(&s->ar, s->irq, ev);
}
-static Property piix4_pm_properties[] = {
+static const Property piix4_pm_properties[] = {
DEFINE_PROP_UINT32("smb_io_base", PIIX4PMState, smb_io_base, 0),
DEFINE_PROP_UINT8(ACPI_PM_PROP_S3_DISABLED, PIIX4PMState, disable_s3, 0),
DEFINE_PROP_UINT8(ACPI_PM_PROP_S4_DISABLED, PIIX4PMState, disable_s4, 0),
diff --git a/hw/acpi/vmgenid.c b/hw/acpi/vmgenid.c
index e63c8af4c3..9c2ca85cc7 100644
--- a/hw/acpi/vmgenid.c
+++ b/hw/acpi/vmgenid.c
@@ -214,7 +214,7 @@ static void vmgenid_realize(DeviceState *dev, Error **errp)
vmgenid_update_guest(vms);
}
-static Property vmgenid_device_properties[] = {
+static const Property vmgenid_device_properties[] = {
DEFINE_PROP_UUID(VMGENID_GUID, VmGenIdState, guid),
DEFINE_PROP_END_OF_LIST(),
};
--
2.43.0
- [PULL 3/4] include/exec: Introduce fpst alias in helper-head.h.inc, (continued)
- [PULL 3/4] include/exec: Introduce fpst alias in helper-head.h.inc, Richard Henderson, 2024/12/13
- [PATCH 05/71] target/microblaze: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 06/71] target/mips: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 07/71] target/ppc: Remove empty property list, Richard Henderson, 2024/12/13
- [PATCH 08/71] target/riscv: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 09/71] target/s390x: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 11/71] cpu-target: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 10/71] target/sparc: Constify all Property and PropertyInfo, Richard Henderson, 2024/12/13
- [PATCH 13/71] hw/acpi: Constify all Property,
Richard Henderson <=
- [PATCH 12/71] hw/9pfs: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 14/71] hw/adc: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 18/71] hw/block/xen-block: Unexport PropertyInfo, Richard Henderson, 2024/12/13
- [PATCH 17/71] hw/avr: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 15/71] hw/arm: Constify all Property, Richard Henderson, 2024/12/13