virtio: include asm/barrier explicitly
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 8 Jul 2013 02:01:06 +0000 (11:31 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 9 Jul 2013 01:17:53 +0000 (10:47 +0930)
virtio_ring.h uses mb() and friends, make
it pull in asm/barrier.h itself, not rely
on other headers to do it.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/virtio_ring.h

index ca3ad41c2c82ad14615d402712d2b50d1e094272..b300787af8e089b05e4038d71fef277fba9f85e4 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _LINUX_VIRTIO_RING_H
 #define _LINUX_VIRTIO_RING_H
 
+#include <asm/barrier.h>
 #include <linux/irqreturn.h>
 #include <uapi/linux/virtio_ring.h>