summaryrefslogtreecommitdiffstats
path: root/tools/virtio
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2018-12-19 18:21:51 -0500
committerMichael S. Tsirkin <mst@redhat.com>2018-12-19 18:23:49 -0500
commitc5c08bed843c2b2c048c16d1296d7631d7c1620e (patch)
tree73afeac0b86a7f5008565254b9a65ada6abededc /tools/virtio
parent7566ec393f4161572ba6f11ad5171fd5d59b0fbd (diff)
downloadlinux-c5c08bed843c2b2c048c16d1296d7631d7c1620e.tar.gz
linux-c5c08bed843c2b2c048c16d1296d7631d7c1620e.tar.bz2
linux-c5c08bed843c2b2c048c16d1296d7631d7c1620e.zip
virtio: fix test build after uio.h change
Fixes: d38499530e5 ("fs: decouple READ and WRITE from the block layer ops") Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/virtio')
-rw-r--r--tools/virtio/linux/kernel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h
index fb22bccfbc8a..7ef45a4a3cba 100644
--- a/tools/virtio/linux/kernel.h
+++ b/tools/virtio/linux/kernel.h
@@ -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;