tools/virtio: fix build
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 10 Aug 2021 16:26:05 +0000 (12:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Sep 2021 08:09:27 +0000 (10:09 +0200)
commit4ac9c81e8a541dd3fb53127cb9184a0d79341e38
tree5000f3b51360b2337d224e05389e73b10d6af17b
parentc7ee4d22614e43ae1d633864b70ac075469ad27f
tools/virtio: fix build

[ Upstream commit a24ce06c70fe7df795a846ad713ccaa9b56a7666 ]

We use a spinlock now so add a stub.
Ignore bogus uninitialized variable warnings.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/virtio/Makefile
tools/virtio/linux/spinlock.h [new file with mode: 0644]
tools/virtio/linux/virtio.h