From patchwork Wed May 25 01:13:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Emilio Cota X-Patchwork-Id: 9134577 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B7E0D60221 for ; Wed, 25 May 2016 01:27:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA9852810D for ; Wed, 25 May 2016 01:27:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F4EF28164; Wed, 25 May 2016 01:27:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 185CC28091 for ; Wed, 25 May 2016 01:27:15 +0000 (UTC) Received: from localhost ([::1]:56556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5NbN-0004Pe-Mq for patchwork-qemu-devel@patchwork.kernel.org; Tue, 24 May 2016 21:27:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5NOt-0001oz-8U for qemu-devel@nongnu.org; Tue, 24 May 2016 21:14:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5NOC-0007cl-S0 for qemu-devel@nongnu.org; Tue, 24 May 2016 21:14:18 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:51560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5NOA-0007WN-Ah for qemu-devel@nongnu.org; Tue, 24 May 2016 21:13:36 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id ED2A020C8B; Tue, 24 May 2016 21:13:24 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Tue, 24 May 2016 21:13:25 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=braap.org; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=8ewjET2CSPXYkXWlqY8/SxPk/Pg=; b=DoddzN M6hJ2R5rplP++2j9LxPX4LDDSKlKvoMrQULaOBZInaOxyw00J8aRFSqQzmOo4jfq ZMo8ZATL+oT30BC7JeFRohyfaM+B0eNL86T/vBD1bWSTyakOO0RsktE0nTbmJ9Jr Z5IGkfSl7dB1BtXfnU+2bbYIvmlLrpzHVpHro= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=8ewjET2CSPXYkXW lqY8/SxPk/Pg=; b=d1gVx0X1UXR0Uxu7etGqwB0uDTYc+loto5h+SP2TxbB5CRr IJh02aiT5eeMTCgzsRQ2TFYauDlg3ZUdS44UK0BKbJEKaOkbQDUQgS2t3vnUc7gt 27ThR0j/9BsG3CfOS2ZT1OfYyrlU+j75xcGtmIJlVPbj+nkVmk+RXeRfyc8g= X-Sasl-enc: AAAAPPEztucbEFTdasjIRosTpvNqqEVhDh8sh8O/YIYI 1464138804 Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id A2613F29F3; Tue, 24 May 2016 21:13:24 -0400 (EDT) From: "Emilio G. Cota" To: QEMU Developers , MTTCG Devel Date: Tue, 24 May 2016 21:13:08 -0400 Message-Id: <1464138802-23503-2-git-send-email-cota@braap.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1464138802-23503-1-git-send-email-cota@braap.org> References: <1464138802-23503-1-git-send-email-cota@braap.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.26 Subject: [Qemu-devel] [PATCH v6 01/15] compiler.h: add QEMU_ALIGNED() to enforce struct alignment X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Sergey Fedorov , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Reviewed-by: Richard Henderson Reviewed-by: Alex Bennée Signed-off-by: Emilio G. Cota Reviewed-by: Sergey Fedorov --- include/qemu/compiler.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h index 8f1cc7b..b64f899 100644 --- a/include/qemu/compiler.h +++ b/include/qemu/compiler.h @@ -41,6 +41,8 @@ # define QEMU_PACKED __attribute__((packed)) #endif +#define QEMU_ALIGNED(X) __attribute__((aligned(X))) + #ifndef glue #define xglue(x, y) x ## y #define glue(x, y) xglue(x, y)