Explorar o código

virtio: include asm/barrier explicitly

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>
Michael S. Tsirkin %!s(int64=12) %!d(string=hai) anos
pai
achega
c5610a5d71
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      include/linux/virtio_ring.h

+ 1 - 0
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>