summaryrefslogtreecommitdiff
path: root/tools/virtio
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2018-12-19 18:21:51 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-13 10:01:01 +0100
commit9adf9d714b3dd94fddf583eb8e8f12efdfa797e4 (patch)
tree194177a8942efe9960bf8df609cfcca912e32f86 /tools/virtio
parentb08f331e84f75a2981350d3ee7452ea67412776d (diff)
virtio: fix test build after uio.h change
[ Upstream commit c5c08bed843c2b2c048c16d1296d7631d7c1620e ] Fixes: d38499530e5 ("fs: decouple READ and WRITE from the block layer ops") Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
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 395521a7a8d8..268ce239de65 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;