hw/core: Constify all Property
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 13 Dec 2024 15:23:44 +0000 (15:23 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 15 Dec 2024 18:54:44 +0000 (12:54 -0600)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
hw/core/generic-loader.c
hw/core/guest-loader.c
hw/core/or-irq.c
hw/core/platform-bus.c
hw/core/split-irq.c

index ea8628b89269b4a2599c4bf7a90cbb99de6c0d9b..c1cddecf604c40fd6863f57adc9e5729eb7a71f8 100644 (file)
@@ -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),
index 391c875a297ba72f839e265ed538e4e6fc1495f5..74af00cee707ea4391b35c04dabe408ee8bac3f8 100644 (file)
@@ -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),
index b25468e38acabbfa6f3497663a252b4cfdbb6928..fc52796f543030514fcb2aa882871ebdd4936b30 100644 (file)
@@ -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(),
 };
index dc58bf505aa2f5c0460eed9b41d9ee41d92b28f1..a29c9c6e594115d20bdcb7b7fbffcfdbb8de3164 100644 (file)
@@ -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()
index 3b90af2e8f9891232555d2ab4999f5d8db4be802..40fc7e2e7735e88cd8808adad62eef7d62728964 100644 (file)
@@ -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(),
 };