projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7566ec3
)
virtio: fix test build after uio.h change
author
Michael S. Tsirkin
<mst@redhat.com>
Wed, 19 Dec 2018 23:21:51 +0000
(18:21 -0500)
committer
Michael S. Tsirkin
<mst@redhat.com>
Wed, 19 Dec 2018 23:23:49 +0000
(18:23 -0500)
Fixes: d38499530e5 ("fs: decouple READ and WRITE from the block layer ops")
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tools/virtio/linux/kernel.h
patch
|
blob
|
history
diff --git
a/tools/virtio/linux/kernel.h
b/tools/virtio/linux/kernel.h
index fb22bccfbc8a7f2df651474211b48aa67efdf8f9..7ef45a4a3cba72dea65d6c9ff9b7779710d20de5 100644
(file)
--- 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;