Commit 06f05bc5 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin

tools/virtio: fix after premapped buf support

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 920379a4
...@@ -26,8 +26,8 @@ enum dma_data_direction { ...@@ -26,8 +26,8 @@ enum dma_data_direction {
#define dma_map_single(d, p, s, dir) (virt_to_phys(p)) #define dma_map_single(d, p, s, dir) (virt_to_phys(p))
#define dma_mapping_error(...) (0) #define dma_mapping_error(...) (0)
#define dma_unmap_single(...) 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(...) do { } 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 #define dma_max_mapping_size(...) SIZE_MAX
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment