diff options
author | Laurent Vivier <lvivier@redhat.com> | 2024-11-27 12:15:51 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-11-27 16:49:21 +0100 |
commit | 00cc2303fd6ac4b72c19d1741dff72fd42c09a47 (patch) | |
tree | cb4a0a568a392925ed8b6b8b5679efeccac1cc11 /tcp_vu.c | |
parent | 6fae899cbbb3ec5bc9a0d5c7dde16131b2f85f05 (diff) | |
download | passt-00cc2303fd6ac4b72c19d1741dff72fd42c09a47.tar passt-00cc2303fd6ac4b72c19d1741dff72fd42c09a47.tar.gz passt-00cc2303fd6ac4b72c19d1741dff72fd42c09a47.tar.bz2 passt-00cc2303fd6ac4b72c19d1741dff72fd42c09a47.tar.lz passt-00cc2303fd6ac4b72c19d1741dff72fd42c09a47.tar.xz passt-00cc2303fd6ac4b72c19d1741dff72fd42c09a47.tar.zst passt-00cc2303fd6ac4b72c19d1741dff72fd42c09a47.zip |
Fix build on 32bit target
Fix the following errors when built with CFLAGS="-m32 -U__AVX2__":
packet.c:57:23: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
57 | trace("packet offset plus length %lu from size %lu, "
58 | "%s:%i", start - p->buf + len + offset,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| size_t {aka unsigned int}
packet.c:57:23: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
57 | trace("packet offset plus length %lu from size %lu, "
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
58 | "%s:%i", start - p->buf + len + offset,
59 | p->buf_size, func, line);
| ~~~~~~~~~~~
| |
| size_t {aka unsigned int}
vhost_user.c:139:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
139 | return (void *)(qemu_addr - r->qva + r->mmap_addr +
| ^
vhost_user.c:439:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
439 | munmap((void *)r->mmap_addr, r->size + r->mmap_offset);
| ^
vhost_user.c:900:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
900 | munmap((void *)r->mmap_addr, r->size + r->mmap_offset);
| ^
virtio.c:111:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
111 | return (void *)(guest_addr - r->gpa + r->mmap_addr +
| ^
vu_common.c:37:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
37 | char *m = (char *)dev_region->mmap_addr;
| ^
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp_vu.c')
0 files changed, 0 insertions, 0 deletions