OSDN Git Service

vringh: pull in spinlock header
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 10 Aug 2021 16:25:05 +0000 (12:25 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 11 Aug 2021 10:44:24 +0000 (06:44 -0400)
we use a spinlock now pull in the correct header to
make vring.h self sufficient.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/linux/vringh.h

index 84db7b8..212892c 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/virtio_byteorder.h>
 #include <linux/uio.h>
 #include <linux/slab.h>
+#include <linux/spinlock.h>
 #if IS_REACHABLE(CONFIG_VHOST_IOTLB)
 #include <linux/dma-direction.h>
 #include <linux/vhost_iotlb.h>