summaryrefslogtreecommitdiffstats
path: root/tools/virtio
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2022-03-04 18:09:18 +0100
committerMichael S. Tsirkin <mst@redhat.com>2022-03-28 22:52:59 +0200
commit06f05bc52269e1f8286ce0fba03b565528fb1456 (patch)
treeac682d01911f08225e5fa1ebf742812d6b7636e3 /tools/virtio
parentvirtio_ring: remove flags check for unmap packed indirect desc (diff)
downloadlinux-06f05bc52269e1f8286ce0fba03b565528fb1456.tar.xz
linux-06f05bc52269e1f8286ce0fba03b565528fb1456.zip
tools/virtio: fix after premapped buf support
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/virtio')
-rw-r--r--tools/virtio/linux/dma-mapping.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/virtio/linux/dma-mapping.h b/tools/virtio/linux/dma-mapping.h
index 8f41cd6bd5c0..834a90bd3270 100644
--- a/tools/virtio/linux/dma-mapping.h
+++ b/tools/virtio/linux/dma-mapping.h
@@ -26,8 +26,8 @@ enum dma_data_direction {
#define dma_map_single(d, p, s, dir) (virt_to_phys(p))
#define dma_mapping_error(...) (0)
-#define dma_unmap_single(...) do { } while (0)
-#define dma_unmap_page(...) do { } while (0)
+#define dma_unmap_single(d, a, s, r) do { (void)(d); (void)(a); (void)(s); (void)(r); } while (0)
+#define dma_unmap_page(d, a, s, r) do { (void)(d); (void)(a); (void)(s); (void)(r); } while (0)
#define dma_max_mapping_size(...) SIZE_MAX