summaryrefslogtreecommitdiffstats
path: root/drivers/virtio
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2021-08-10 18:26:05 +0200
committerMichael S. Tsirkin <mst@redhat.com>2021-08-11 12:44:24 +0200
commitf8ce72632fa7ed286cc9a62c35e279330a14d3e0 (patch)
treef75c7986f1413fdc3d230c2c2bf9d4e758ea582d /drivers/virtio
parentvringh: pull in spinlock header (diff)
downloadlinux-f8ce72632fa7ed286cc9a62c35e279330a14d3e0.tar.xz
linux-f8ce72632fa7ed286cc9a62c35e279330a14d3e0.zip
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