[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] hw/hyperv: Fix 32-bit build error for vmbus.
From: |
Richard Henderson |
Subject: |
[PATCH] hw/hyperv: Fix 32-bit build error for vmbus. |
Date: |
Mon, 7 Sep 2020 10:50:43 -0700 |
../qemu/hw/hyperv/vmbus.c: In function ‘gpadl_iter_io’:
../qemu/hw/hyperv/vmbus.c:383:13: error: cast to pointer from integer of
different size [-Werror=int-to-pointer-cast]
383 | p = (void *)(((uintptr_t)iter->map & TARGET_PAGE_MASK) |
off_in_page);
| ^
cc1: all warnings being treated as errors
Fixes: 0d71f7082d7 ("vmbus: vmbus implementation")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
Cc: 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 75af6b83dd..3482e9c6cb 100644
--- a/hw/hyperv/vmbus.c
+++ b/hw/hyperv/vmbus.c
@@ -380,7 +380,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.25.1
- [PULL 00/19] target/microblaze patch queue, Richard Henderson, 2020/09/07
- [PATCH] hw/hyperv: Fix 32-bit build error for vmbus.,
Richard Henderson <=
- [PULL 01/19] target/microblaze: Collected fixes for env->iflags, Richard Henderson, 2020/09/07
- [PULL 02/19] target/microblaze: Renumber D_FLAG, Richard Henderson, 2020/09/07
- [PULL 04/19] target/microblaze: Rename mmu structs, Richard Henderson, 2020/09/07
- [PULL 05/19] target/microblaze: Rename DISAS_UPDATE to DISAS_EXIT, Richard Henderson, 2020/09/07
- [PULL 03/19] target/microblaze: Cleanup mb_cpu_do_interrupt, Richard Henderson, 2020/09/07
- [PULL 06/19] target/microblaze: Introduce DISAS_EXIT_NEXT, DISAS_EXIT_JUMP, Richard Henderson, 2020/09/07
- [PULL 07/19] target/microblaze: Replace cpustate_changed with DISAS_EXIT_NEXT, Richard Henderson, 2020/09/07
- [PULL 08/19] target/microblaze: Handle DISAS_EXIT_NEXT in delay slot, Richard Henderson, 2020/09/07
- [PULL 09/19] target/microblaze: Force rtid, rted, rtbd to exit, Richard Henderson, 2020/09/07