Skip to content

Commit 06f05bc

Browse files
committed
tools/virtio: fix after premapped buf support
Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 920379a commit 06f05bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/virtio/linux/dma-mapping.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ enum dma_data_direction {
2626
#define dma_map_single(d, p, s, dir) (virt_to_phys(p))
2727
#define dma_mapping_error(...) (0)
2828

29-
#define dma_unmap_single(...) do { } while (0)
30-
#define dma_unmap_page(...) do { } while (0)
29+
#define dma_unmap_single(d, a, s, r) do { (void)(d); (void)(a); (void)(s); (void)(r); } while (0)
30+
#define dma_unmap_page(d, a, s, r) do { (void)(d); (void)(a); (void)(s); (void)(r); } while (0)
3131

3232
#define dma_max_mapping_size(...) SIZE_MAX
3333

0 commit comments

Comments
 (0)