Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1
+1
tools/virtio/asm/barrier.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 + #include <stdlib.h> 2 3 #if defined(__i386__) || defined(__x86_64__) 3 4 #define barrier() asm volatile("" ::: "memory") 4 5 #define virt_mb() __sync_synchronize()