Skip to contentSkip to conversation

virtio: fix test build after uio.h change

PATCH New Michael S. Tsirkin 1 participant 1 message Dec 19, 2018 virtio core

lore
Share & tools
lore

Michael S. Tsirkin

author maintainer
#0 lore raw

PATCH 1/1 virtio: fix test build after uio.h change

Fixes d38499530e5 ("fs: decouple READ and WRITE from the block layer ops")
---
 tools/virtio/linux/kernel.h | 4 ++++
 1 file changed, 4 insertions(+)
tools/virtio/linux/kernel.h +4 -0
index fb22bccfbc8a..7ef45a4a3cba 100644
@@ -23,6 +23,10 @@
 #define PAGE_MASK (~(PAGE_SIZE-1))
 #define PAGE_ALIGN(x) ((x + PAGE_SIZE - 1) & PAGE_MASK)
 
+/* generic data direction definitions */
+#define READ                    0
+#define WRITE                   1
+
 typedef unsigned long long phys_addr_t;
 typedef unsigned long long dma_addr_t;
 typedef size_t __kernel_size_t;
Signature · 1 line
MST