qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] hw/rdma: Fix 32-bit compilation
@ 2018-03-21 21:10 Yuval Shaia
  2018-03-21 21:10 ` [Qemu-devel] [PATCH 1/3] hw/rdma: Change host_virt to void * Yuval Shaia
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Yuval Shaia @ 2018-03-21 21:10 UTC (permalink / raw)
  To: yuval.shaia, marcel, eblake, qemu-devel, qemu-trivial

Hi all,
Following are three patches which fixes various compilation warnings and
errors detected when compiling rdma device in 32bit host.

All three patches are based on Eric Blake patch for rdma device.
Thanks!

Patch #1: Change host_virt to void *
Low level IB verbs library accept void * argument so let's make sure this
is what we supply. This issue reported by Eric Blake.

Patch #2: Use correct print format in CHK_ATTR macro
This macro can utilize the given 'format' argument and not need to cast all
members to u64. This patch is an alternative to suggested patch by Eric
Blake.

Patch #3: Fix 32-bit compilation
Based on Eric Blake patch this patch replaces all %ld/%lx with the platform
independent PRIx64/PRId64 format.

Again, thanks Eric Blake for the report.

Yuval Shaia (3):
  hw/rdma: Change host_virt to void *
  hw/rdma: Use correct print format in CHK_ATTR macro
  hw/rdma: Fix 32-bit compilation

 hw/rdma/rdma_backend.c        | 33 +++++++++++++++++----------------
 hw/rdma/rdma_backend.h        |  2 +-
 hw/rdma/rdma_rm.c             | 14 +++++++-------
 hw/rdma/rdma_rm_defs.h        |  2 +-
 hw/rdma/rdma_utils.c          |  6 +++---
 hw/rdma/vmw/pvrdma_cmd.c      |  8 ++++----
 hw/rdma/vmw/pvrdma_dev_ring.c |  6 +++---
 hw/rdma/vmw/pvrdma_dev_ring.h |  2 +-
 hw/rdma/vmw/pvrdma_main.c     | 25 +++++++++++++------------
 hw/rdma/vmw/pvrdma_qp_ops.c   |  6 +++---
 10 files changed, 53 insertions(+), 51 deletions(-)

-- 
2.13.6

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-03-22  9:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-21 21:10 [Qemu-devel] [PATCH 0/3] hw/rdma: Fix 32-bit compilation Yuval Shaia
2018-03-21 21:10 ` [Qemu-devel] [PATCH 1/3] hw/rdma: Change host_virt to void * Yuval Shaia
2018-03-22  8:25   ` [Qemu-devel] [Qemu-trivial] " Philippe Mathieu-Daudé
2018-03-21 21:10 ` [Qemu-devel] [PATCH 2/3] hw/rdma: Use correct print format in CHK_ATTR macro Yuval Shaia
2018-03-22  8:26   ` Philippe Mathieu-Daudé
2018-03-21 21:10 ` [Qemu-devel] [PATCH 3/3] hw/rdma: Fix 32-bit compilation Yuval Shaia
2018-03-22  8:31   ` [Qemu-devel] [Qemu-trivial] " Philippe Mathieu-Daudé
2018-03-22  9:43     ` Yuval Shaia
2018-03-21 22:24 ` [Qemu-devel] [PATCH 0/3] " Eric Blake
2018-03-22  5:07 ` no-reply
2018-03-22  7:48   ` Marcel Apfelbaum

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).