summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-12-20 05:40:48 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2018-12-20 05:40:48 +0300
commitab63e725b49c80f941446327d79ba5b68593bf5a (patch)
tree394bd0d901fcff6001ab77c6cf436915127698eb /tools
parent8c9dff1ebd721a3b19a002d1a901d4dc31b18ebb (diff)
parentc5c08bed843c2b2c048c16d1296d7631d7c1620e (diff)
downloadlinux-ab63e725b49c80f941446327d79ba5b68593bf5a.tar.xz
Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
Pull virtio fix from Michael Tsirkin: "A last-minute fix for a test build" * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: virtio: fix test build after uio.h change
Diffstat (limited to 'tools')
-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;