summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2020-04-06 23:20:45 +0300
committerMichael S. Tsirkin <mst@redhat.com>2020-04-17 13:05:29 +0300
commit770f359ced9893365eae3be66e88fc9bb9d16412 (patch)
treef2c22d7642da901c00633baaa21bed2ff769cff4 /tools
parent6bd6b282d0be1c662a0312e7c6beb91f16c508a2 (diff)
downloadlinux-770f359ced9893365eae3be66e88fc9bb9d16412.tar.xz
tools/virtio: make asm/barrier.h self contained
We are using abort() so let's include stdlib.h Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/virtio/asm/barrier.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/virtio/asm/barrier.h b/tools/virtio/asm/barrier.h
index d0351f83aebe..04d563fc9b95 100644
--- a/tools/virtio/asm/barrier.h
+++ b/tools/virtio/asm/barrier.h
@@ -1,4 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0 */
+#include <stdlib.h>
#if defined(__i386__) || defined(__x86_64__)
#define barrier() asm volatile("" ::: "memory")
#define virt_mb() __sync_synchronize()