Skip to content

Commit 770f359

Browse files
committed
tools/virtio: make asm/barrier.h self contained
We are using abort() so let's include stdlib.h Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 6bd6b28 commit 770f359

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/virtio/asm/barrier.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2+
#include <stdlib.h>
23
#if defined(__i386__) || defined(__x86_64__)
34
#define barrier() asm volatile("" ::: "memory")
45
#define virt_mb() __sync_synchronize()

0 commit comments

Comments
 (0)