Skip to content

Commit

Permalink
tools/virtio: fix after premapped buf support
Browse files Browse the repository at this point in the history
Signed-off-by: Michael S. Tsirkin <[email protected]>
  • Loading branch information
mstsirkin committed Mar 28, 2022
1 parent 920379a commit 06f05bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/virtio/linux/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 06f05bc

Please sign in to comment.