From: Michael S. Tsirkin Date: Mon, 6 Apr 2020 16:17:55 +0000 (-0400) Subject: tools/virtio: define aligned attribute X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bd6b282d0be1c662a0312e7c6beb91f16c508a2;p=people%2Fms%2Flinux.git tools/virtio: define aligned attribute Signed-off-by: Michael S. Tsirkin --- 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