summaryrefslogtreecommitdiff
path: root/tools/virtio/asm
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2015-09-09 22:03:30 +0300
committerMichael S. Tsirkin <mst@redhat.com>2015-09-09 22:03:30 +0300
commitddab2c0eaf57b2de0b2516a477e3ce0f7554509b (patch)
treed1eb57b89a4da9bac367b58739805d3e239f51a7 /tools/virtio/asm
parent997e120843e82609c8d99a9d5714e6cf91e14cbe (diff)
downloadlinux-ddab2c0eaf57b2de0b2516a477e3ce0f7554509b.tar.xz
tools/virtio: fix build after 4.2 changes
more stubs, mostly Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/virtio/asm')
-rw-r--r--tools/virtio/asm/barrier.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/virtio/asm/barrier.h b/tools/virtio/asm/barrier.h
index aff61e13306c..26b7926bda88 100644
--- a/tools/virtio/asm/barrier.h
+++ b/tools/virtio/asm/barrier.h
@@ -3,6 +3,8 @@
#define mb() __sync_synchronize()
#define smp_mb() mb()
+# define dma_rmb() barrier()
+# define dma_wmb() barrier()
# define smp_rmb() barrier()
# define smp_wmb() barrier()
/* Weak barriers should be used. If not - it's a bug */