Message ID | 20241213190750.2513964-17-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | whole-tree: Constify Property structures | expand |
On Fri, 13 Dec 2024 13:06:46 -0600 Richard Henderson <richard.henderson@linaro.org> wrote: > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- Reviewed-by: Greg Kurz <groug@kaod.org> > hw/9pfs/virtio-9p-device.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c > index efa41cfd73..b764e4cd3d 100644 > --- a/hw/9pfs/virtio-9p-device.c > +++ b/hw/9pfs/virtio-9p-device.c > @@ -243,7 +243,7 @@ static const VMStateDescription vmstate_virtio_9p = { > }, > }; > > -static Property virtio_9p_properties[] = { > +static const Property virtio_9p_properties[] = { > DEFINE_PROP_STRING("mount_tag", V9fsVirtioState, state.fsconf.tag), > DEFINE_PROP_STRING("fsdev", V9fsVirtioState, state.fsconf.fsdev_id), > DEFINE_PROP_END_OF_LIST(),
On Friday, December 13, 2024 8:06:46 PM CET Richard Henderson wrote: > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com> > hw/9pfs/virtio-9p-device.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c > index efa41cfd73..b764e4cd3d 100644 > --- a/hw/9pfs/virtio-9p-device.c > +++ b/hw/9pfs/virtio-9p-device.c > @@ -243,7 +243,7 @@ static const VMStateDescription vmstate_virtio_9p = { > }, > }; > > -static Property virtio_9p_properties[] = { > +static const Property virtio_9p_properties[] = { > DEFINE_PROP_STRING("mount_tag", V9fsVirtioState, state.fsconf.tag), > DEFINE_PROP_STRING("fsdev", V9fsVirtioState, state.fsconf.fsdev_id), > DEFINE_PROP_END_OF_LIST(), >
diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c index efa41cfd73..b764e4cd3d 100644 --- a/hw/9pfs/virtio-9p-device.c +++ b/hw/9pfs/virtio-9p-device.c @@ -243,7 +243,7 @@ static const VMStateDescription vmstate_virtio_9p = { }, }; -static Property virtio_9p_properties[] = { +static const Property virtio_9p_properties[] = { DEFINE_PROP_STRING("mount_tag", V9fsVirtioState, state.fsconf.tag), DEFINE_PROP_STRING("fsdev", V9fsVirtioState, state.fsconf.fsdev_id), DEFINE_PROP_END_OF_LIST(),
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- hw/9pfs/virtio-9p-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)