projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bd6b28
)
tools/virtio: make asm/barrier.h self contained
author
Michael S. Tsirkin
<mst@redhat.com>
Mon, 6 Apr 2020 20:20:45 +0000
(16:20 -0400)
committer
Michael S. Tsirkin
<mst@redhat.com>
Fri, 17 Apr 2020 10:05:29 +0000
(06:05 -0400)
We are using abort() so let's include stdlib.h
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tools/virtio/asm/barrier.h
patch
|
blob
|
history
diff --git
a/tools/virtio/asm/barrier.h
b/tools/virtio/asm/barrier.h
index
d0351f8
..
04d563f
100644
(file)
--- 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()