[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 12/67] hw/acpi: Constify all Property
From: |
Richard Henderson |
Subject: |
[PULL 12/67] hw/acpi: Constify all Property |
Date: |
Sun, 15 Dec 2024 13:04:38 -0600 |
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
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 01/67] target/arm: Constify all Property, (continued)
- [PULL 01/67] target/arm: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 04/67] target/i386: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 02/67] target/avr: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 03/67] target/hexagon: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 05/67] target/microblaze: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 06/67] target/mips: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 07/67] target/riscv: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 09/67] target/sparc: Constify all Property and PropertyInfo, Richard Henderson, 2024/12/15
- [PULL 08/67] target/s390x: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 11/67] hw/9pfs: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 12/67] hw/acpi: Constify all Property,
Richard Henderson <=
- [PULL 10/67] cpu-target: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 13/67] hw/adc: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 20/67] hw/core: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 15/67] hw/audio: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 14/67] hw/arm: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 18/67] hw/block: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 16/67] hw/avr: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 23/67] hw/display: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 22/67] hw/cxl: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 21/67] hw/cpu: Constify all Property, Richard Henderson, 2024/12/15