summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2020-04-06 12:17:55 -0400
committerMichael S. Tsirkin <mst@redhat.com>2020-04-17 06:05:29 -0400
commit6bd6b282d0be1c662a0312e7c6beb91f16c508a2 (patch)
tree25d5ddc4cf8834f489ba573d4b46ed6f856ea897 /tools
parent3302363a27fb38a3581921a74aff855f4dcbfe0a (diff)
downloadlinux-stable-6bd6b282d0be1c662a0312e7c6beb91f16c508a2.tar.gz
linux-stable-6bd6b282d0be1c662a0312e7c6beb91f16c508a2.tar.bz2
linux-stable-6bd6b282d0be1c662a0312e7c6beb91f16c508a2.zip
tools/virtio: define aligned attribute
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/virtio/linux/compiler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/virtio/linux/compiler.h b/tools/virtio/linux/compiler.h
index 903dc9c4bd11..2c51bccb97bb 100644
--- 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