projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
920379a
)
tools/virtio: fix after premapped buf support
author
Michael S. Tsirkin
<mst@redhat.com>
Fri, 4 Mar 2022 17:09:18 +0000
(12:09 -0500)
committer
Michael S. Tsirkin
<mst@redhat.com>
Mon, 28 Mar 2022 20:52:59 +0000
(16:52 -0400)
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tools/virtio/linux/dma-mapping.h
patch
|
blob
|
history
diff --git
a/tools/virtio/linux/dma-mapping.h
b/tools/virtio/linux/dma-mapping.h
index
8f41cd6
..
834a90b
100644
(file)
--- 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