Re: [PATCH 20/71] hw/9pfs: Constify VMState

2023-11-06 Thread Christian Schoenebeck
On Monday, November 6, 2023 7:57:36 AM CET Richard Henderson wrote:
> Signed-off-by: Richard Henderson 
> ---

Acked-by: Christian Schoenebeck 

>  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 5f522e68e9..efa41cfd73 100644
> --- a/hw/9pfs/virtio-9p-device.c
> +++ b/hw/9pfs/virtio-9p-device.c
> @@ -237,7 +237,7 @@ static const VMStateDescription vmstate_virtio_9p = {
>  .name = "virtio-9p",
>  .minimum_version_id = 1,
>  .version_id = 1,
> -.fields = (VMStateField[]) {
> +.fields = (const VMStateField[]) {
>  VMSTATE_VIRTIO_DEVICE,
>  VMSTATE_END_OF_LIST()
>  },
> 





Re: [PATCH 20/71] hw/9pfs: Constify VMState

2023-11-05 Thread Greg Kurz
On Sun,  5 Nov 2023 22:57:36 -0800
Richard Henderson  wrote:

> Signed-off-by: Richard Henderson 
> ---

Acked-by: Greg Kurz 

>  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 5f522e68e9..efa41cfd73 100644
> --- a/hw/9pfs/virtio-9p-device.c
> +++ b/hw/9pfs/virtio-9p-device.c
> @@ -237,7 +237,7 @@ static const VMStateDescription vmstate_virtio_9p = {
>  .name = "virtio-9p",
>  .minimum_version_id = 1,
>  .version_id = 1,
> -.fields = (VMStateField[]) {
> +.fields = (const VMStateField[]) {
>  VMSTATE_VIRTIO_DEVICE,
>  VMSTATE_END_OF_LIST()
>  },



-- 
Greg



[PATCH 20/71] hw/9pfs: Constify VMState

2023-11-05 Thread Richard Henderson
Signed-off-by: Richard Henderson 
---
 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 5f522e68e9..efa41cfd73 100644
--- a/hw/9pfs/virtio-9p-device.c
+++ b/hw/9pfs/virtio-9p-device.c
@@ -237,7 +237,7 @@ static const VMStateDescription vmstate_virtio_9p = {
 .name = "virtio-9p",
 .minimum_version_id = 1,
 .version_id = 1,
-.fields = (VMStateField[]) {
+.fields = (const VMStateField[]) {
 VMSTATE_VIRTIO_DEVICE,
 VMSTATE_END_OF_LIST()
 },
-- 
2.34.1