From: Michael S. Tsirkin Date: Mon, 6 Apr 2020 16:17:55 +0000 (-0400) Subject: tools/virtio: define aligned attribute X-Git-Tag: v5.7-rc3~40^2~16 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6bd6b282d0be1c662a0312e7c6beb91f16c508a2;p=users%2Fjedix%2Flinux-maple.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