git.samba.org
/
sfrench
/
cifs-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b08f331
)
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
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 09:01:01 +0000
(10:01 +0100)
[ 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>
tools/virtio/linux/kernel.h
patch
|
blob
|
history
diff --git
a/tools/virtio/linux/kernel.h
b/tools/virtio/linux/kernel.h
index 395521a7a8d86b6cfe8510ac46fc6fee1b3fdb73..268ce239de650493f082edc38d8674ccf8d3e93b 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;