From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Peng Liang <liangpeng10@huawei.com>,
qemu-arm@nongnu.org, qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, joel@jms.id.au, xiexiangyou@huawei.com,
zhang.zhanghailiang@huawei.com
Subject: Re: [PATCH] microbit_i2c: Fix coredump when dump-vmstate
Date: Mon, 19 Oct 2020 12:35:04 +0200 [thread overview]
Message-ID: <786deb83-b6f4-d778-d5ed-19f3901ad211@redhat.com> (raw)
In-Reply-To: <20201019093401.2993833-1-liangpeng10@huawei.com>
On 10/19/20 11:34 AM, Peng Liang wrote:
> VMStateDescription.fields should be end with VMSTATE_END_OF_LIST().
> However, microbit_i2c_vmstate doesn't follow it. Let's change it.
It might be easy to add a Coccinelle script to avoid future errors.
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>
> Fixes: 9d68bf564e ("arm: Stub out NRF51 TWI magnetometer/accelerometer detection")
> Reported-by: Euler Robot <euler.robot@huawei.com>
> Signed-off-by: Peng Liang <liangpeng10@huawei.com>
> ---
> hw/i2c/microbit_i2c.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/i2c/microbit_i2c.c b/hw/i2c/microbit_i2c.c
> index 802473982082..e92f9f84ea81 100644
> --- a/hw/i2c/microbit_i2c.c
> +++ b/hw/i2c/microbit_i2c.c
> @@ -83,6 +83,7 @@ static const VMStateDescription microbit_i2c_vmstate = {
> .fields = (VMStateField[]) {
> VMSTATE_UINT32_ARRAY(regs, MicrobitI2CState, MICROBIT_I2C_NREGS),
> VMSTATE_UINT32(read_idx, MicrobitI2CState),
> + VMSTATE_END_OF_LIST()
> },
> };
>
>
next prev parent reply other threads:[~2020-10-19 10:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-19 9:34 [PATCH] microbit_i2c: Fix coredump when dump-vmstate Peng Liang
2020-10-19 10:35 ` Philippe Mathieu-Daudé [this message]
2020-10-19 14:30 ` Peng Liang
2020-10-20 11:17 ` Peng Liang
2020-10-20 11:27 ` Philippe Mathieu-Daudé
2020-10-20 12:07 ` Peng Liang
2020-10-20 11:27 ` Peter Maydell
2020-10-20 12:19 ` Peng Liang
2020-10-20 14:36 ` Peter Maydell
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=786deb83-b6f4-d778-d5ed-19f3901ad211@redhat.com \
--to=philmd@redhat.com \
--cc=joel@jms.id.au \
--cc=liangpeng10@huawei.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=xiexiangyou@huawei.com \
--cc=zhang.zhanghailiang@huawei.com \
/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).