summaryrefslogtreecommitdiff
path: root/drivers/virtio
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2021-08-10 12:26:05 -0400
committerMichael S. Tsirkin <mst@redhat.com>2021-08-11 06:44:24 -0400
commitf8ce72632fa7ed286cc9a62c35e279330a14d3e0 (patch)
treef75c7986f1413fdc3d230c2c2bf9d4e758ea582d /drivers/virtio
parentea2f6af16532511eb1cd8eb62845c37861f24ce8 (diff)
virtio_ring: pull in spinlock header
we use a spinlock now pull in the correct header to make virtio_ring.c self sufficient. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/virtio')
-rw-r--r--drivers/virtio/virtio_ring.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index c2aaa0eff6df..dd95dfd85e98 100644
--- a/drivers/virtio/virtio_ring.c
+++ b/drivers/virtio/virtio_ring.c
@@ -11,6 +11,7 @@
#include <linux/module.h>
#include <linux/hrtimer.h>
#include <linux/dma-mapping.h>
+#include <linux/spinlock.h>
#include <xen/xen.h>
#ifdef DEBUG