summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2022-03-04 20:09:18 +0300
committerMichael S. Tsirkin <mst@redhat.com>2022-03-28 23:52:59 +0300
commit06f05bc52269e1f8286ce0fba03b565528fb1456 (patch)
treeac682d01911f08225e5fa1ebf742812d6b7636e3 /tools
parent920379a465da775ae0bf84d44c16f5432b5be575 (diff)
downloadlinux-06f05bc52269e1f8286ce0fba03b565528fb1456.tar.xz
tools/virtio: fix after premapped buf support
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools')
-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