qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jon Doron <arilou@gmail.com>
To: qemu-devel@nongnu.org
Cc: mail@maciej.szmigiero.name, Jon Doron <arilou@gmail.com>,
	rvkagan@yandex-team.ru, imammedo@redhat.com, pbonzini@redhat.com,
	vkuznets@redhat.com
Subject: [PATCH v5 2/2] hw: hyperv: vmbus: Fix 32bit compilation
Date: Wed, 15 Jul 2020 11:43:26 +0300	[thread overview]
Message-ID: <20200715084326.678715-3-arilou@gmail.com> (raw)
In-Reply-To: <20200715084326.678715-1-arilou@gmail.com>

Signed-off-by: Jon Doron <arilou@gmail.com>
---
 hw/hyperv/vmbus.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hw/hyperv/vmbus.c b/hw/hyperv/vmbus.c
index 34392e892a..c28bb4201b 100644
--- a/hw/hyperv/vmbus.c
+++ b/hw/hyperv/vmbus.c
@@ -383,7 +383,8 @@ static ssize_t gpadl_iter_io(GpadlIter *iter, void *buf, uint32_t len)
             }
         }
 
-        p = (void *)(((uintptr_t)iter->map & TARGET_PAGE_MASK) | off_in_page);
+        p = (void *)(uintptr_t)(((uintptr_t)iter->map & TARGET_PAGE_MASK) |
+                off_in_page);
         if (iter->dir == DMA_DIRECTION_FROM_DEVICE) {
             memcpy(p, buf, cplen);
         } else {
-- 
2.24.1



  parent reply	other threads:[~2020-07-15  8:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-15  8:43 [PATCH v5 0/2] hyperv: vmbus: ACPI various corrections Jon Doron
2020-07-15  8:43 ` [PATCH v5 1/2] acpi: i386: Move VMBus DSDT entry to SB Jon Doron
2020-07-15 13:51   ` Igor Mammedov
2020-07-15  8:43 ` Jon Doron [this message]
2020-07-25 12:16   ` [PATCH v5 2/2] hw: hyperv: vmbus: Fix 32bit compilation Aleksandar Markovic
2020-07-29 14:15     ` Igor Mammedov
2020-09-06 10:14   ` Philippe Mathieu-Daudé
2020-09-09 13:56     ` Laurent Vivier
2020-09-09 16:18       ` Richard Henderson
2020-09-09 16:30         ` Laurent Vivier
2020-09-12  6:26 ` [PATCH v5 0/2] hyperv: vmbus: ACPI various corrections Paolo Bonzini

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=20200715084326.678715-3-arilou@gmail.com \
    --to=arilou@gmail.com \
    --cc=imammedo@redhat.com \
    --cc=mail@maciej.szmigiero.name \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rvkagan@yandex-team.ru \
    --cc=vkuznets@redhat.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).