From: Michael S. Tsirkin Date: Mon, 6 Apr 2020 20:20:45 +0000 (-0400) Subject: tools/virtio: make asm/barrier.h self contained X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=770f359ced9893365eae3be66e88fc9bb9d16412;p=linux.git tools/virtio: make asm/barrier.h self contained We are using abort() so let's include stdlib.h Signed-off-by: Michael S. Tsirkin --- diff --git a/tools/virtio/asm/barrier.h b/tools/virtio/asm/barrier.h index d0351f83aebed..04d563fc9b95c 100644 --- a/tools/virtio/asm/barrier.h +++ b/tools/virtio/asm/barrier.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0 */ +#include #if defined(__i386__) || defined(__x86_64__) #define barrier() asm volatile("" ::: "memory") #define virt_mb() __sync_synchronize()