public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] virtio: include asm/barrier explicitly
@ 2013-07-07 14:20 Michael S. Tsirkin
  2013-07-07 14:21 ` Michael S. Tsirkin
  2013-07-08  2:01 ` Rusty Russell
  0 siblings, 2 replies; 4+ messages in thread
From: Michael S. Tsirkin @ 2013-07-07 14:20 UTC (permalink / raw)
  To: kvm; +Cc: Rusty Russell, virtualization, linux-kernel

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>
---
 include/linux/virtio_ring.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/virtio_ring.h b/include/linux/virtio_ring.h
index ca3ad41..b300787 100644
--- a/include/linux/virtio_ring.h
+++ b/include/linux/virtio_ring.h
@@ -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>
 
-- 
MST

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-07-08  5:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-07 14:20 [PATCH] virtio: include asm/barrier explicitly Michael S. Tsirkin
2013-07-07 14:21 ` Michael S. Tsirkin
2013-07-08  2:01 ` Rusty Russell
2013-07-08  5:33   ` Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox