[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 20/67] hw/core: Constify all Property
From: |
Richard Henderson |
Subject: |
[PULL 20/67] hw/core: Constify all Property |
Date: |
Sun, 15 Dec 2024 13:04:46 -0600 |
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/core/generic-loader.c | 2 +-
hw/core/guest-loader.c | 2 +-
hw/core/or-irq.c | 2 +-
hw/core/platform-bus.c | 2 +-
hw/core/split-irq.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/hw/core/generic-loader.c b/hw/core/generic-loader.c
index ea8628b892..c1cddecf60 100644
--- a/hw/core/generic-loader.c
+++ b/hw/core/generic-loader.c
@@ -179,7 +179,7 @@ static void generic_loader_unrealize(DeviceState *dev)
qemu_unregister_reset(generic_loader_reset, dev);
}
-static Property generic_loader_props[] = {
+static const Property generic_loader_props[] = {
DEFINE_PROP_UINT64("addr", GenericLoaderState, addr, 0),
DEFINE_PROP_UINT64("data", GenericLoaderState, data, 0),
DEFINE_PROP_UINT8("data-len", GenericLoaderState, data_len, 0),
diff --git a/hw/core/guest-loader.c b/hw/core/guest-loader.c
index 391c875a29..74af00cee7 100644
--- a/hw/core/guest-loader.c
+++ b/hw/core/guest-loader.c
@@ -111,7 +111,7 @@ static void guest_loader_realize(DeviceState *dev, Error
**errp)
loader_insert_platform_data(s, size, errp);
}
-static Property guest_loader_props[] = {
+static const Property guest_loader_props[] = {
DEFINE_PROP_UINT64("addr", GuestLoaderState, addr, 0),
DEFINE_PROP_STRING("kernel", GuestLoaderState, kernel),
DEFINE_PROP_STRING("bootargs", GuestLoaderState, args),
diff --git a/hw/core/or-irq.c b/hw/core/or-irq.c
index b25468e38a..fc52796f54 100644
--- a/hw/core/or-irq.c
+++ b/hw/core/or-irq.c
@@ -115,7 +115,7 @@ static const VMStateDescription vmstate_or_irq = {
},
};
-static Property or_irq_properties[] = {
+static const Property or_irq_properties[] = {
DEFINE_PROP_UINT16("num-lines", OrIRQState, num_lines, 1),
DEFINE_PROP_END_OF_LIST(),
};
diff --git a/hw/core/platform-bus.c b/hw/core/platform-bus.c
index dc58bf505a..a29c9c6e59 100644
--- a/hw/core/platform-bus.c
+++ b/hw/core/platform-bus.c
@@ -204,7 +204,7 @@ static void platform_bus_realize(DeviceState *dev, Error
**errp)
plaform_bus_refresh_irqs(pbus);
}
-static Property platform_bus_properties[] = {
+static const Property platform_bus_properties[] = {
DEFINE_PROP_UINT32("num_irqs", PlatformBusDevice, num_irqs, 0),
DEFINE_PROP_UINT32("mmio_size", PlatformBusDevice, mmio_size, 0),
DEFINE_PROP_END_OF_LIST()
diff --git a/hw/core/split-irq.c b/hw/core/split-irq.c
index 3b90af2e8f..40fc7e2e77 100644
--- a/hw/core/split-irq.c
+++ b/hw/core/split-irq.c
@@ -59,7 +59,7 @@ static void split_irq_realize(DeviceState *dev, Error **errp)
qdev_init_gpio_out(dev, s->out_irq, s->num_lines);
}
-static Property split_irq_properties[] = {
+static const Property split_irq_properties[] = {
DEFINE_PROP_UINT16("num-lines", SplitIRQ, num_lines, 1),
DEFINE_PROP_END_OF_LIST(),
};
--
2.43.0
- [PULL 03/67] target/hexagon: Constify all Property, (continued)
- [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, 2024/12/15
- [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 <=
- [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
- [PULL 17/67] hw/block/xen-block: Unexport PropertyInfo, Richard Henderson, 2024/12/15
- [PULL 19/67] hw/char: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 28/67] hw/i386: Constify all Property, Richard Henderson, 2024/12/15