projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3302363
)
tools/virtio: define aligned attribute
author
Michael S. Tsirkin
<mst@redhat.com>
Mon, 6 Apr 2020 16:17:55 +0000
(12:17 -0400)
committer
Michael S. Tsirkin
<mst@redhat.com>
Fri, 17 Apr 2020 10:05:29 +0000
(06:05 -0400)
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tools/virtio/linux/compiler.h
patch
|
blob
|
history
diff --git
a/tools/virtio/linux/compiler.h
b/tools/virtio/linux/compiler.h
index 903dc9c4bd115f196538138da3b32f30bcbd807e..2c51bccb97bb27ee816e64644c41b4c00f967796 100644
(file)
--- a/
tools/virtio/linux/compiler.h
+++ b/
tools/virtio/linux/compiler.h
@@
-7,4
+7,5
@@
#define READ_ONCE(var) (*((volatile typeof(var) *)(&(var))))
+#define __aligned(x) __attribute((__aligned__(x)))
#endif