qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Vivier <laurent@vivier.eu>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>, qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
	Rob Herring <robh@kernel.org>,
	qemu-trivial@nongnu.org, qemu-arm@nongnu.org,
	Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [PATCH 3/3] hw/usb: Constify VMStateDescription
Date: Fri, 30 Apr 2021 18:19:26 +0200	[thread overview]
Message-ID: <18f64916-def8-b38d-8e7b-a91f6d5664f9@vivier.eu> (raw)
In-Reply-To: <20210313171150.2122409-4-f4bug@amsat.org>

Le 13/03/2021 à 18:11, Philippe Mathieu-Daudé a écrit :
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  hw/usb/ccid-card-passthru.c   | 2 +-
>  hw/usb/dev-smartcard-reader.c | 8 ++++----
>  2 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/hw/usb/ccid-card-passthru.c b/hw/usb/ccid-card-passthru.c
> index c1a90fcc7a5..7212d0d7fb5 100644
> --- a/hw/usb/ccid-card-passthru.c
> +++ b/hw/usb/ccid-card-passthru.c
> @@ -374,7 +374,7 @@ static void passthru_realize(CCIDCardState *base, Error **errp)
>      card->atr_length = sizeof(DEFAULT_ATR);
>  }
>  
> -static VMStateDescription passthru_vmstate = {
> +static const VMStateDescription passthru_vmstate = {
>      .name = "ccid-card-passthru",
>      .version_id = 1,
>      .minimum_version_id = 1,
> diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c
> index 80109fa5516..b3845ccdc14 100644
> --- a/hw/usb/dev-smartcard-reader.c
> +++ b/hw/usb/dev-smartcard-reader.c
> @@ -1365,7 +1365,7 @@ static int ccid_pre_save(void *opaque)
>      return 0;
>  }
>  
> -static VMStateDescription bulk_in_vmstate = {
> +static const VMStateDescription bulk_in_vmstate = {
>      .name = "CCID BulkIn state",
>      .version_id = 1,
>      .minimum_version_id = 1,
> @@ -1377,7 +1377,7 @@ static VMStateDescription bulk_in_vmstate = {
>      }
>  };
>  
> -static VMStateDescription answer_vmstate = {
> +static const VMStateDescription answer_vmstate = {
>      .name = "CCID Answer state",
>      .version_id = 1,
>      .minimum_version_id = 1,
> @@ -1388,7 +1388,7 @@ static VMStateDescription answer_vmstate = {
>      }
>  };
>  
> -static VMStateDescription usb_device_vmstate = {
> +static const VMStateDescription usb_device_vmstate = {
>      .name = "usb_device",
>      .version_id = 1,
>      .minimum_version_id = 1,
> @@ -1400,7 +1400,7 @@ static VMStateDescription usb_device_vmstate = {
>      }
>  };
>  
> -static VMStateDescription ccid_vmstate = {
> +static const VMStateDescription ccid_vmstate = {
>      .name = "usb-ccid",
>      .version_id = 1,
>      .minimum_version_id = 1,
> 

Applied to my trivial-patches branch.

Thanks,
Laurent



  reply	other threads:[~2021-04-30 16:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-13 17:11 [PATCH 0/3] hw: Constify VMStateDescription Philippe Mathieu-Daudé
2021-03-13 17:11 ` [PATCH 1/3] hw/arm: " Philippe Mathieu-Daudé
2021-04-30 16:16   ` Laurent Vivier
2021-03-13 17:11 ` [PATCH 2/3] hw/display/qxl: " Philippe Mathieu-Daudé
2021-04-30 16:17   ` Laurent Vivier
2021-03-13 17:11 ` [PATCH 3/3] hw/usb: " Philippe Mathieu-Daudé
2021-04-30 16:19   ` Laurent Vivier [this message]
2021-03-13 17:24 ` [PATCH 0/3] hw: " Richard Henderson
2021-03-15  9:05 ` Keqian Zhu
2021-04-08 13:22   ` Philippe Mathieu-Daudé
2021-04-08 13:46     ` Keqian Zhu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18f64916-def8-b38d-8e7b-a91f6d5664f9@vivier.eu \
    --to=laurent@vivier.eu \
    --cc=f4bug@amsat.org \
    --cc=kraxel@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).