From: "Michael S. Tsirkin" Subject: [PATCH v8 01/19] tools/virtio: define aligned attribute Date: Mon, 6 Apr 2020 21:16:29 -0400 Message-ID: <20200407011612.478226-2-mst@redhat.com> References: <20200407011612.478226-1-mst@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20200407011612.478226-1-mst@redhat.com> Sender: linux-kernel-owner@vger.kernel.org To: linux-kernel@vger.kernel.org Cc: Jason Wang , virtualization@lists.linux-foundation.org List-Id: virtualization@lists.linuxfoundation.org Signed-off-by: Michael S. Tsirkin --- tools/virtio/linux/compiler.h | 1 + 1 file changed, 1 insertion(+) 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 -- MST