From: Paolo Bonzini <pbonzini@redhat.com>
To: Li Qiang <liq3ea@163.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] hw: edu: drop DO_UPCAST
Date: Sat, 13 Oct 2018 10:09:53 +0200 [thread overview]
Message-ID: <3df5813c-2a9e-968f-4f4a-475aedd69110@redhat.com> (raw)
In-Reply-To: <20181013055103.51451-1-liq3ea@163.com>
On 13/10/2018 07:51, Li Qiang wrote:
> Signed-off-by: Li Qiang <liq3ea@163.com>
> ---
> hw/misc/edu.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/misc/edu.c b/hw/misc/edu.c
> index 0687ffd343..cdcf550dd7 100644
> --- a/hw/misc/edu.c
> +++ b/hw/misc/edu.c
> @@ -342,7 +342,7 @@ static void *edu_fact_thread(void *opaque)
>
> static void pci_edu_realize(PCIDevice *pdev, Error **errp)
> {
> - EduState *edu = DO_UPCAST(EduState, pdev, pdev);
> + EduState *edu = EDU(pdev);
> uint8_t *pci_conf = pdev->config;
>
> pci_config_set_interrupt_pin(pci_conf, 1);
> @@ -365,7 +365,7 @@ static void pci_edu_realize(PCIDevice *pdev, Error **errp)
>
> static void pci_edu_uninit(PCIDevice *pdev)
> {
> - EduState *edu = DO_UPCAST(EduState, pdev, pdev);
> + EduState *edu = EDU(pdev);
>
> qemu_mutex_lock(&edu->thr_mutex);
> edu->stopping = true;
>
Queued, thanks.
Paolo
prev parent reply other threads:[~2018-10-13 8:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-13 5:51 [Qemu-devel] [PATCH] hw: edu: drop DO_UPCAST Li Qiang
2018-10-13 8:09 ` Paolo Bonzini [this message]
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=3df5813c-2a9e-968f-4f4a-475aedd69110@redhat.com \
--to=pbonzini@redhat.com \
--cc=liq3ea@163.com \
--cc=qemu-devel@nongnu.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).