From nobody Tue Oct 28 01:50:34 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1515434701288860.286200123729; Mon, 8 Jan 2018 10:05:01 -0800 (PST) Received: from localhost ([::1]:48896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYbnA-0006L1-AA for importer@patchew.org; Mon, 08 Jan 2018 13:05:00 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYbkx-00050B-IB for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYbkw-00067O-37 for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:43 -0500 Received: from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:39081) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYbkv-00066w-W2 for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:42 -0500 Received: by mail-qt0-x243.google.com with SMTP id k19so14684092qtj.6 for ; Mon, 08 Jan 2018 10:02:41 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id o5sm7919072qtc.72.2018.01.08.10.02.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jan 2018 10:02:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Wp9kaRwdtkvTkG4v0qbOJVzTLQAW2OvbC7gNtTpi0rg=; b=cAMVb9VqD2mgrdZWM2mE1K9mm6oJtq8OJgHxPSBBhWU1e9lm7qqHk04jm2QgSrrvyh HOtYJp0Y/RVoFP3dVVBxzJWS59SQBrJ4G0JlDDnbllp96/CCkQ1xu5Xih124/VR0HcJM 2N7zdfN2d5py9r79upZQH9JEjcRjRUwmivgkLFGpaBf0mHj1ZVGFJrPaHjeZf/wug7vP gdwtGYsvHCmaSEzy3wcriZtxIyUlhK9qipqTLUGLSA5gbor4RQxinlfNBCsW3Q95ZTKl aW73KszgAwXN99yUmP0GxmNfMzUjlUNFKw7ewVs7ec3bvc382nV740KY0HlmlBp/lqC3 y7wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Wp9kaRwdtkvTkG4v0qbOJVzTLQAW2OvbC7gNtTpi0rg=; b=VSxDG9Fm4RL6Jp0uS3Qkh+bfuOc9einLxvy61g93FjMgYsZhLSEZ3C21UfiSUjhRJs 5Z9HO9E+HUwQbyfHPbQbPVqVT0UokJVVfO84327l2tYynbRk2+69VujRL1zAM06A3+Bg 0flb9wk8h+N7jrjVVeDOwRFgBItivuJ60zUQpSrFImTnq2OM+Y2G9nZyPnOh34povJaA jgg38BYpfp6dx7ncyjonzF5Lw8eNYqimG3bM2ufJlZg7ckN92VXO1rHRIQtzh67QyWWi AGTkmr+YQU7pzTvCbrRSCShHgCwlVu0sJyAIgD2wUvlEGAXT8vWvFossKADE2uctt5ha y7/w== X-Gm-Message-State: AKwxytd314n8R8IHTunlOSFHpzxRLJKix2aRRe3DVmK9lsGOr7Qed+Gj Re6bwhs5sSjrwslYEiM4+nU= X-Google-Smtp-Source: ACJfBotuZaB/12lLmJaFrAvs7nTaC+RtGydljyPNyUbDW9BEjKOm+XCMIZxn9kpJylkxxV+wgnp0LQ== X-Received: by 10.237.37.85 with SMTP id w21mr17743874qtc.129.1515434561420; Mon, 08 Jan 2018 10:02:41 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Jiri Pirko , Jason Wang , Dmitry Fleytman Date: Mon, 8 Jan 2018 15:02:25 -0300 Message-Id: <20180108180231.21122-2-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180108180231.21122-1-f4bug@amsat.org> References: <20180108180231.21122-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::243 Subject: [Qemu-devel] [PATCH 1/7] net: struct MACAddr can use the QEMU_PACKED macro 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: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- include/net/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/net.h b/include/net/net.h index 4afac1a9dd..70f5bb3419 100644 --- a/include/net/net.h +++ b/include/net/net.h @@ -23,7 +23,7 @@ =20 struct MACAddr { uint8_t a[6]; -}; +} QEMU_PACKED; =20 /* qdev nic properties */ =20 --=20 2.15.1 From nobody Tue Oct 28 01:50:34 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1515434703890133.0791487526825; Mon, 8 Jan 2018 10:05:03 -0800 (PST) Received: from localhost ([::1]:48897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYbnD-0006N2-57 for importer@patchew.org; Mon, 08 Jan 2018 13:05:03 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYbl2-00054L-Kg for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYbky-0006Az-LC for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:48 -0500 Received: from mail-qt0-x22d.google.com ([2607:f8b0:400d:c0d::22d]:33491) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYbky-0006Ai-GP for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:44 -0500 Received: by mail-qt0-x22d.google.com with SMTP id e2so14673627qti.0 for ; Mon, 08 Jan 2018 10:02:44 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id o5sm7919072qtc.72.2018.01.08.10.02.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jan 2018 10:02:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=t2laCXOLwU0dgA4VsQeHE6XWtm5WTZhe+iX7QXMYjg4=; b=Hyv27h/PSYZeJQY1qCL3jTwneWzxQ01WKn8rJ9Iw1ytAlLhN1dy+Q6klnqoCP1aYWL EhlQ/jJde7BMcg4ZJN+mbsFceWpMN3kDDUb36+x0reDVj2EQ4d/HROAm5MBM2DnJpfqW IXQrgHPi+nJFgYhJIRag2VC1FV94tvg1vgtCY96CRNHnmZifxbDmYJpIdvw6zaqC9DVb ETHaK7mwHU5Ur8BAsVSxoTnDA4a90Cexs5FrEjFQjujdrKEq3Ze4YmUwuaa1Vamsua8v sfQEhuUQg/mhXzkFmz3LIVzt5SB2F2kQZpzUchLcLJbycrkx/+pzxw4cVbIzn38MtGfw yqJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=t2laCXOLwU0dgA4VsQeHE6XWtm5WTZhe+iX7QXMYjg4=; b=EKphW32Z4nxivpeKz/TIYCnRC/XuxK/NP0bm+ZIXzXId67Mur+SKc0PGR0bgPmm44u T+ebKsj+7ps0kxtAdTZ5/6Rbo/hc5yUj86C/2R6msLZ9bxksXV4wVkjmipv0acCMWois jRzq64J1dEUYnEXls2ERE2lvj+h5zxCkZOXJpbeMKZ9YWDrkcTSGlBOwH8oN+CasjL4c TeJ8wlioH7RGsQCq7NAFOSF2ZiDpEd5L/8aIYG6uLVkJ+S4OWTVk+yGRwRDrYRYAWimD RyY4HyV3jCJsSiuNhRD0HhcH3ACaURF5zMfqNONHzz7oXxnEmEn9MtwoGPOPLZKhIS/R UqVg== X-Gm-Message-State: AKwxytd0BaMoCf/37xeUk13L2XrEMete82n8610dC42O9KcgZVE5cdnW 1VNt2YLuRL/LCdFanGyBMe4= X-Google-Smtp-Source: ACJfBosu0fKp4PJE20cr2/Fwnj57u7PZGMFlbhXV3/PWws6qh35eM7JDtaEwYKvg5lFW4hxTZ/qiAw== X-Received: by 10.237.56.9 with SMTP id j9mr17111394qte.15.1515434563925; Mon, 08 Jan 2018 10:02:43 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Jiri Pirko , Jason Wang , Dmitry Fleytman Date: Mon, 8 Jan 2018 15:02:26 -0300 Message-Id: <20180108180231.21122-3-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180108180231.21122-1-f4bug@amsat.org> References: <20180108180231.21122-1-f4bug@amsat.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::22d Subject: [Qemu-devel] [PATCH 2/7] net/eth: use the QEMU_PACKED macro 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: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" --- include/net/eth.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/include/net/eth.h b/include/net/eth.h index 09054a506d..87c6499f18 100644 --- a/include/net/eth.h +++ b/include/net/eth.h @@ -36,12 +36,12 @@ struct eth_header { uint8_t h_dest[ETH_ALEN]; /* destination eth addr */ uint8_t h_source[ETH_ALEN]; /* source ether addr */ uint16_t h_proto; /* packet type ID field */ -}; +} QEMU_PACKED; =20 struct vlan_header { uint16_t h_tci; /* priority and VLAN ID */ uint16_t h_proto; /* encapsulated protocol */ -}; +} QEMU_PACKED; =20 struct ip_header { uint8_t ip_ver_len; /* version and header length */ @@ -53,9 +53,9 @@ struct ip_header { uint8_t ip_p; /* protocol */ uint16_t ip_sum; /* checksum */ uint32_t ip_src, ip_dst; /* source and destination address */ -}; +} QEMU_PACKED; =20 -typedef struct tcp_header { +typedef struct QEMU_PACKED tcp_header { uint16_t th_sport; /* source port */ uint16_t th_dport; /* destination port */ uint32_t th_seq; /* sequence number */ @@ -77,14 +77,14 @@ typedef struct tcp_header { #define TCP_HEADER_DATA_OFFSET(tcp) \ (((be16_to_cpu((tcp)->th_offset_flags) >> 12) & 0xf) << 2) =20 -typedef struct udp_header { +typedef struct QEMU_PACKED udp_header { uint16_t uh_sport; /* source port */ uint16_t uh_dport; /* destination port */ uint16_t uh_ulen; /* udp length */ uint16_t uh_sum; /* udp checksum */ } udp_header; =20 -typedef struct ip_pseudo_header { +typedef struct QEMU_PACKED ip_pseudo_header { uint32_t ip_src; uint32_t ip_dst; uint8_t zeros; @@ -116,9 +116,9 @@ struct ip6_header { } ip6_ctlun; struct in6_address ip6_src; /* source address */ struct in6_address ip6_dst; /* destination address */ -}; +} QEMU_PACKED; =20 -typedef struct ip6_pseudo_header { +typedef struct QEMU_PACKED ip6_pseudo_header { struct in6_address ip6_src; struct in6_address ip6_dst; uint32_t len; @@ -129,7 +129,7 @@ typedef struct ip6_pseudo_header { struct ip6_ext_hdr { uint8_t ip6r_nxt; /* next header */ uint8_t ip6r_len; /* length in units of 8 octets */ -}; +} QEMU_PACKED; =20 struct ip6_ext_hdr_routing { uint8_t nxt; @@ -137,21 +137,21 @@ struct ip6_ext_hdr_routing { uint8_t rtype; uint8_t segleft; uint8_t rsvd[4]; -}; +} QEMU_PACKED; =20 struct ip6_option_hdr { #define IP6_OPT_PAD1 (0x00) #define IP6_OPT_HOME (0xC9) uint8_t type; uint8_t len; -}; +} QEMU_PACKED; =20 struct udp_hdr { uint16_t uh_sport; /* source port */ uint16_t uh_dport; /* destination port */ uint16_t uh_ulen; /* udp length */ uint16_t uh_sum; /* udp checksum */ -}; +} QEMU_PACKED; =20 struct tcp_hdr { u_short th_sport; /* source port */ @@ -180,7 +180,7 @@ struct tcp_hdr { u_short th_win; /* window */ u_short th_sum; /* checksum */ u_short th_urp; /* urgent pointer */ -}; +} QEMU_PACKED; =20 #define ip6_nxt ip6_ctlun.ip6_un1.ip6_un1_nxt #define ip6_ecn_acc ip6_ctlun.ip6_un3.ip6_un3_ecn --=20 2.15.1 From nobody Tue Oct 28 01:50:34 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1515434714125897.2503560305195; Mon, 8 Jan 2018 10:05:14 -0800 (PST) Received: from localhost ([::1]:48898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYbnN-0006T9-AT for importer@patchew.org; Mon, 08 Jan 2018 13:05:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYbl2-00053U-4L for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYbl1-0006DX-CW for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:48 -0500 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:43911) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYbl1-0006Cw-8F for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:47 -0500 Received: by mail-qk0-x243.google.com with SMTP id j137so15247088qke.10 for ; Mon, 08 Jan 2018 10:02:47 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id o5sm7919072qtc.72.2018.01.08.10.02.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jan 2018 10:02:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ihXleF4kc3w6SkgMCPRF0YaGMDaO2UQh/GPz17OOIh8=; b=gYu1jNgiNghElTk7M4QB0fzO2vzokyJX7vaQFjGOEbuetWomb3M5Yc0d0K7Q7VR7/H nbuIFM+ZhIW8wDMdYVYAKjBiRSsYdhWLl0cjECt+8zrqUaGv9ulVkdAwX6uZP66R9Qrv ZPPjY3FwFlyLOdJ3b3Zva/b5dDfFhRnrwPBBsBqiD1mxCxtWVc6Opieh9uusCX8ozG7D l+U5/GxJOcjmt2BGz+52CEsZVk7xN1a0fpztwB18HhnxVFo0rkyExKX+jq93FgRIx661 LE5U5FIba0Y9oI8ttOLBvPXCuPyftBU48CLhcKhD5YbjyuyB2xXMBMts3sSfq5VXgd0z gD8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=ihXleF4kc3w6SkgMCPRF0YaGMDaO2UQh/GPz17OOIh8=; b=nmWm8DgpIji/flMjtzVSUaO9Duk579AzqVoG8DxpagkT+tCHPtXWJU/GXjAiI99DYi A8Sgk8bCe/MZv3Z6bIvQUuA9TWPUgP1xlwc3WeGGsMhdtsgcdnstHjlUqJF9kWNaH73d AmmnNjYhIDHBU7eUQhUYAYzdKHtDU6rdBMjrAIWxBgJBz1DgFKetQFoATTsXT1pmbdPB u5l8z4BzX+9hDpAGYrdJ7C+9FIxj/oonZITOlUXPSZ6yrz6THGnd4zWf4gv4FZS6kwCA N2ub8cCg5G1Kd5F7DKbHCH5qnTwRF5oT9gDbqWkd4Vl57XdknOGVl0Feh6EV33jez1FT 7I/A== X-Gm-Message-State: AKwxytcRx4bng/ILo84vYho8X2jSa8lZAkH/tcSU4c+2tqUKYjMOhZx7 cMvIS/Z7ZYC/Scx2gIdU5Gk= X-Google-Smtp-Source: ACJfBos77Yficxf+wGNlnXk+/2jZHpg0VtGI3xIXm9Uz1qvyi9kumXepOjj2iz4H3kVrHRFYRFiMow== X-Received: by 10.55.116.68 with SMTP id p65mr17574125qkc.140.1515434566696; Mon, 08 Jan 2018 10:02:46 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Jiri Pirko , Jason Wang , Dmitry Fleytman , Stefan Weil Date: Mon, 8 Jan 2018 15:02:27 -0300 Message-Id: <20180108180231.21122-4-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180108180231.21122-1-f4bug@amsat.org> References: <20180108180231.21122-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::243 Subject: [Qemu-devel] [PATCH 3/7] net/rocker: use QEMU_PACKED and QEMU_ALIGNED() macros 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: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- hw/net/rocker/rocker_hw.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/net/rocker/rocker_hw.h b/hw/net/rocker/rocker_hw.h index 1786323fa4..8b4ce250d5 100644 --- a/hw/net/rocker/rocker_hw.h +++ b/hw/net/rocker/rocker_hw.h @@ -130,7 +130,7 @@ typedef struct rocker_desc { __le16 tlv_size; __le16 rsvd[5]; /* pad to 32 bytes */ __le16 comp_err; -} __attribute__((packed, aligned(8))) RockerDesc; +} QEMU_PACKED QEMU_ALIGNED(8) RockerDesc; =20 /* * Rocker TLV type fields @@ -140,7 +140,7 @@ typedef struct rocker_tlv { __le32 type; __le16 len; __le16 rsvd; -} __attribute__((packed, aligned(8))) RockerTlv; +} QEMU_PACKED QEMU_ALIGNED(8) RockerTlv; =20 /* cmd msg */ enum { --=20 2.15.1 From nobody Tue Oct 28 01:50:34 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1515434851090880.0994833466455; Mon, 8 Jan 2018 10:07:31 -0800 (PST) Received: from localhost ([::1]:48992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYbpU-00005y-L2 for importer@patchew.org; Mon, 08 Jan 2018 13:07:24 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYbl8-00058D-15 for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYbl4-0006Fs-4o for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:54 -0500 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:45389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYbl4-0006FR-0H for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:50 -0500 Received: by mail-qk0-x241.google.com with SMTP id o126so15226693qke.12 for ; Mon, 08 Jan 2018 10:02:49 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id o5sm7919072qtc.72.2018.01.08.10.02.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jan 2018 10:02:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vnRo2WsXionWTuFtjNkgvgY73nA1TIn+jCdKMpFGrVM=; b=J8NrQ0C4HbUiXxog477VPcpTO/7z4BwAzARS2EsDi6e+aiiIxvlspDACpK7rRkIpnZ RANsvLVX0K+bVyv4QXUmhBsQYzpmtZR+kHfyEEWeS+XNeCk/pQDRL++ebMMXV76iPqt2 24cKCG8PzJht0hvO44KJ7VhE69TS3CYybifLrk83XL/BtZ+6gvhJuFvVg0xLF3d4o96D rCeQEYowXqn4GhUC2zZmYOAunlhUrxaKnXiC0MzZ+c2+kAYVJtMsZGAiQayoLU97R/e5 dtmL4G81GAAD6RcCZgjDaxf6+NIawRQkH2IQ/3/3v2Qt10Q+C7FtRdC/lWkDKBUmPmz8 2Y5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=vnRo2WsXionWTuFtjNkgvgY73nA1TIn+jCdKMpFGrVM=; b=NlJMWgT9bmFYgG01fAwdGOtYg0gGgRWZ4sp6LkFdEaJVCv33UGvhqvjM1X6Uw/FtB0 TfS5JIZYSJbq0bOp1PJfotj/gBJ+FvREhKg0BP1JX6Tj2vaa69SfM7rbgmhV11WmIdRo nWnOnxUgXaM4p2UVBFzOH7t3Vc/KF7eVmQS0/GLd66AxBujVDaMiGIrvIwHzzIoZMv3V nc9+lj1HokCkB3SLW2rW7MYnCXZHtOJXc+Y9US/5b6g+gThqYorh/zQigStgBp05w8Ve d37pw5Af9JW3petFZtSO9Toeb+D0V7JtoWlqxKh1RftKALFfaauLejwSI1ofZSQlabnt cyKA== X-Gm-Message-State: AKwxyteou1cy4aReGcgdx6yeZ5DLIc5zMXvCBe2DdmHXMpsp8ZtlkGIp CbGK/JsbX5BYsZU7m07OUvc= X-Google-Smtp-Source: ACJfBouBGLazH/PiwjEVt4tu819wyJC1/EyCRsBaD2wExhhgNJjw2gcrxlcLEQ5xHGB/VHkYqU8fHA== X-Received: by 10.55.152.69 with SMTP id a66mr16025162qke.120.1515434569442; Mon, 08 Jan 2018 10:02:49 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Jiri Pirko , Jason Wang , Dmitry Fleytman , Stefan Weil Date: Mon, 8 Jan 2018 15:02:28 -0300 Message-Id: <20180108180231.21122-5-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180108180231.21122-1-f4bug@amsat.org> References: <20180108180231.21122-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::241 Subject: [Qemu-devel] [PATCH 4/7] net/rocker: move struct rocker_desc to C file 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: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 this is the only user. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- hw/net/rocker/rocker_hw.h | 13 ------------- hw/net/rocker/rocker_desc.c | 13 +++++++++++++ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/hw/net/rocker/rocker_hw.h b/hw/net/rocker/rocker_hw.h index 8b4ce250d5..daaaf4080f 100644 --- a/hw/net/rocker/rocker_hw.h +++ b/hw/net/rocker/rocker_hw.h @@ -119,19 +119,6 @@ enum { */ #define ROCKER_RING_INDEX(reg) ((reg >> 5) & 0x7F) =20 -/* - * Rocker DMA Descriptor - */ - -typedef struct rocker_desc { - __le64 buf_addr; - uint64_t cookie; - __le16 buf_size; - __le16 tlv_size; - __le16 rsvd[5]; /* pad to 32 bytes */ - __le16 comp_err; -} QEMU_PACKED QEMU_ALIGNED(8) RockerDesc; - /* * Rocker TLV type fields */ diff --git a/hw/net/rocker/rocker_desc.c b/hw/net/rocker/rocker_desc.c index b009da4f89..2f2de837f8 100644 --- a/hw/net/rocker/rocker_desc.c +++ b/hw/net/rocker/rocker_desc.c @@ -23,6 +23,19 @@ #include "rocker_hw.h" #include "rocker_desc.h" =20 +/* + * Rocker DMA Descriptor + */ + +typedef struct rocker_desc { + __le64 buf_addr; + uint64_t cookie; + __le16 buf_size; + __le16 tlv_size; + __le16 rsvd[5]; /* pad to 32 bytes */ + __le16 comp_err; +} QEMU_PACKED QEMU_ALIGNED(8) RockerDesc; + struct desc_ring { hwaddr base_addr; uint32_t size; --=20 2.15.1 From nobody Tue Oct 28 01:50:34 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1515434851045629.878666789574; Mon, 8 Jan 2018 10:07:31 -0800 (PST) Received: from localhost ([::1]:48995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYbpZ-0000A8-RH for importer@patchew.org; Mon, 08 Jan 2018 13:07:29 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYbl8-00058H-Ks for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYbl8-0006Iw-0q for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:54 -0500 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]:38704) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYbl7-0006IZ-T1 for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:53 -0500 Received: by mail-qt0-x244.google.com with SMTP id d4so14652488qtj.5 for ; Mon, 08 Jan 2018 10:02:53 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id o5sm7919072qtc.72.2018.01.08.10.02.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jan 2018 10:02:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=m0DmTlMP3srzAlWHZ8ZFH5Z/oYHyTdf02/VeJsL4Af0=; b=IepbnkU3HELWy9aPSw1iBr+xX2C6d1WD9eESm8/ZVpDhmgAu1N2+Pqocga3Noj+rIz Hia+PhzBbc2cE5J7NBcTwc93pATLNO/oTjeyTiG3LoqXd+ZTYbwQl+6/1v2da1zmWWQc xGH6mzgFAOMqoWQDv0hx6fb5AgZarxQvp5BtL66dtemsVBIbM5JRpYIb1Wj5aZ0CfzKw uW/orNmiWvwSp17S6mWwYwiJ6arbOL52+v8NyG+u9ZqN8STrxld6xbSRYtX4gU2PSNKu gT6/3ylvTVEEueFYyQ8eDhoGHpurUBwrH+axPsipGq4Rd0AQPEGR6A99RH/5iVkRIKDt ULww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=m0DmTlMP3srzAlWHZ8ZFH5Z/oYHyTdf02/VeJsL4Af0=; b=kyPHkVw2DjD9O9S46enDlvxnhOaGdX6xtQXGsI0TPvyYy1MuK/Kjn+0ftVYLNKNgHK b3cT1l6Bb+ZABrHJPXbkiDMyM3RYDLOqXlfQugHJH749EQ/20tqFHTLRgxFLUDrA1iqP VKlfENJuqDdhC0DXOFuCsAA+5t09wk0m3hyDDO7WGe+skJrsj47Fdk1tESYqUMSqYybJ 4N1EECiE86cWpStKDQQbFfoD5TF8yv0bfOzCVOjFQDEFApIviVJtspDtHid9BMu6lOGm cIoEd3FsqVaGsiJ01zoA3AcEohkhw05uXGwHZCcekB22V8y4EmABF3uksizCtUvOVIRy ZA6w== X-Gm-Message-State: AKwxyte5QjNHsEGe6wlGnQl6jiXx7kPYLeJ/XU+RrvUvP/z948dATpwH uv/7vVK91i9FeveryLFIBvA= X-Google-Smtp-Source: ACJfBosYK23ws12t6bn9lcaI1yH5NMkVNKmDElIiuOnl/S/iTkJYSwYBR7HoZSZq7EhhCdv0PeND8w== X-Received: by 10.237.41.134 with SMTP id o6mr1320913qtd.80.1515434573320; Mon, 08 Jan 2018 10:02:53 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Jiri Pirko , Jason Wang , Dmitry Fleytman , Stefan Weil , Paolo Bonzini , Eduardo Habkost , "Michael S. Tsirkin" , Marcel Apfelbaum Date: Mon, 8 Jan 2018 15:02:29 -0300 Message-Id: <20180108180231.21122-6-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180108180231.21122-1-f4bug@amsat.org> References: <20180108180231.21122-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::244 Subject: [Qemu-devel] [PATCH 5/7] net/eepro100: use QEMU_ALIGNED() macro 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: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- hw/net/eepro100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c index a07a63247e..61d767524f 100644 --- a/hw/net/eepro100.c +++ b/hw/net/eepro100.c @@ -266,7 +266,7 @@ typedef struct { =20 /* Data in mem is always in the byte order of the controller (le). * It must be dword aligned to allow direct access to 32 bit values. */ - uint8_t mem[PCI_MEM_SIZE] __attribute__((aligned(8))); + uint8_t mem[PCI_MEM_SIZE] QEMU_ALIGNED(8); =20 /* Configuration bytes. */ uint8_t configuration[22]; --=20 2.15.1 From nobody Tue Oct 28 01:50:34 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1515435002030824.396356365131; Mon, 8 Jan 2018 10:10:02 -0800 (PST) Received: from localhost ([::1]:49079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYbrx-00028G-9i for importer@patchew.org; Mon, 08 Jan 2018 13:09:57 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYblD-0005An-01 for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYblC-0006Mr-D4 for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:59 -0500 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:45392) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYblC-0006MW-8p for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:02:58 -0500 Received: by mail-qk0-x242.google.com with SMTP id o126so15227337qke.12 for ; Mon, 08 Jan 2018 10:02:58 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id o5sm7919072qtc.72.2018.01.08.10.02.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jan 2018 10:02:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ETKATtk9Js0CgBUmfMOtoYGwftm8fSuQKMWbAeKaf80=; b=XvEIoKkIQ04M6nSBGAyL2sG67udYvusIjQ45rZj4lPdMCNwTLpoQEWqTOsJQaeLviY sO6NWOEQWfbPaQHgwhubwnrxxGzt8O/iMn9LWy4rWKjpBDgP55udxf/HJ62MXLEFR1bT JxX2wcqyuP6ztj7hcRBJU+wUTaheRL0z2OWogGrYHwgM9Tg0V5EnLh9QDMwsqgPJeTWo mYQQgwfz5awo/czRhLvFz/iHbJxiAFz0eyyi9Rzz/Gy79b2R33OWJeYcfL+tYI7+9nGp VD692vd08kkc+xoD5nZQEuwLa9EjvPyzpaBqR2ECP5lN8khnk0WKfiL8SkbxRP9bKpZq KaXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=ETKATtk9Js0CgBUmfMOtoYGwftm8fSuQKMWbAeKaf80=; b=ehgzPlS0JW85kehp+rMHMGqxQyxcpO3/TsNap89lrQEAMvmBvfpaRsBRgH46rux+gV I2Rk2RPoTXeQwAXrTDxEkvgjnKvDVFWE90/AYEIM/d/I3DdaLajXn7wXi5xQziaLASgO 5dfq6+l1M4ZpiN7D3QBTBMMfQ8TfNsBzsLpmn5SdtocAiwkcFnlT679wmeyUgmGVzLxM w6QPLiJ/z3HmxbrU5Lurdcp8U/mNm05UEYxxPVoAOKFHFgRfoSngpDYLHhaVzlJSMzIR 4fmRb8jBcMFP/W/EjBT2LzJDjuy9gBln+u0d2T1v4bPKTV1OV4JT0KrKRH8c+34870uu DDvA== X-Gm-Message-State: AKwxytfO+d04u0hNYfx3J4WpT4/wk839yQnQTycOsS7V/GvbJjCuNIQI s6a86/uiTjMSPEUyoci1ZvY= X-Google-Smtp-Source: ACJfBotV0LSNEIJ9f4+8+x6sdH8Bmos2kVLQWK/zWfVWDBId1ivYLaeBxKuFdvL3WjY1LJiIMMK4mg== X-Received: by 10.55.187.134 with SMTP id l128mr17743413qkf.211.1515434577772; Mon, 08 Jan 2018 10:02:57 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Jiri Pirko , Jason Wang , Dmitry Fleytman , Stefan Weil , Paolo Bonzini , Eduardo Habkost , "Michael S. Tsirkin" , Marcel Apfelbaum Date: Mon, 8 Jan 2018 15:02:30 -0300 Message-Id: <20180108180231.21122-7-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180108180231.21122-1-f4bug@amsat.org> References: <20180108180231.21122-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::242 Subject: [Qemu-devel] [RFC PATCH 6/7] net/eepro100: reduce alignment to DWORD (32bit) 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: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 as suggested in the comment. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/net/eepro100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c index 61d767524f..abb44710d9 100644 --- a/hw/net/eepro100.c +++ b/hw/net/eepro100.c @@ -266,7 +266,7 @@ typedef struct { =20 /* Data in mem is always in the byte order of the controller (le). * It must be dword aligned to allow direct access to 32 bit values. */ - uint8_t mem[PCI_MEM_SIZE] QEMU_ALIGNED(8); + uint8_t mem[PCI_MEM_SIZE] QEMU_ALIGNED(4); =20 /* Configuration bytes. */ uint8_t configuration[22]; --=20 2.15.1 From nobody Tue Oct 28 01:50:34 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1515435098819301.58580948152553; Mon, 8 Jan 2018 10:11:38 -0800 (PST) Received: from localhost ([::1]:49198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYbta-0003Sg-4B for importer@patchew.org; Mon, 08 Jan 2018 13:11:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYblK-0005KG-3T for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:03:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYblG-0006Pp-85 for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:03:06 -0500 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:44779) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYblG-0006PN-44 for qemu-devel@nongnu.org; Mon, 08 Jan 2018 13:03:02 -0500 Received: by mail-qk0-x243.google.com with SMTP id v188so15225125qkh.11 for ; Mon, 08 Jan 2018 10:03:01 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id o5sm7919072qtc.72.2018.01.08.10.02.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jan 2018 10:03:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=M0S/NPoxWEQjNCC2+iBKtDmSgrbitPUQmqHJvS9aaGI=; b=IZq5zTgFxLoZeKEW9S1CZvbSNR+NSMgheQ8zCnQNZewLWLyMSdk9hgomJpk1olo37s 1vhNsdGhVT2KQ9o7uUY0UwgigAcaJZyD+fUxq00A8Nade6kqxJ1bCCO0gntXDKKuh8Jo 7CJ85MZN2AV2ai0rpQMs07iOxmjW7PAvn8xa8qolJivePYC4U2+7cY+1mbvXzUM7ZRi/ Kx4B2fTCwF5UufB4rBWLJKkwgQcKT2CediOhFwUPRj0iK5BKxiqsk96g67x2OpX7zYvK oQ1Rp9HSkSvXadZMZ3S4gCOr6cvALqytD3LpD71RJ9GWlL4EV8qFLZyUWRAlw9LGCtG6 3ufg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=M0S/NPoxWEQjNCC2+iBKtDmSgrbitPUQmqHJvS9aaGI=; b=fmFkg6XhzS2ina9NqHqRgDk8wY7P7781iefwanCUrrnaHg0Uv7xF/69NYkE5Ks2mPT GIxAdqkluWwwusfArgBky6Qn1ELd82oFEbqxG/ExKkdNvRqm4v3mQNNslKjglEa0ovCZ E+hhqsEmVzPGGa6MkSAiXtpeEiJ8plP4gw9SIB1QtPFwPap13wk20vECgxkJFj4pxEyb ZfLathsq7e1ieIDvtEdnar5z8uKHzeeJROe/jygRz0GMx8gRC1S/f/QDBrGsvWBzxCyM g72BX1L10bP7U21dGU6WMvUVvxsG4YjkvuCMinrX8GSyWM4l2pChVJsQw8q3j2EZxWYx fc9Q== X-Gm-Message-State: AKGB3mI7RygKUpAuempe8/f9xWHSGALI1usAGXAa8KsbUFWwDAiC+wqx Z55xC/GQbQ7i7GqYExHCyIc= X-Google-Smtp-Source: ACJfBovearpWaDEShX+xvVNpcA7BUD+1UNcDh0Xy1lK/2IdPHl38mqA5UnMn+FxWjxC1rdZhMLHSjg== X-Received: by 10.55.77.65 with SMTP id a62mr17395884qkb.249.1515434581634; Mon, 08 Jan 2018 10:03:01 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Jiri Pirko , Jason Wang , Dmitry Fleytman , Stefan Weil , Paolo Bonzini , Eduardo Habkost , "Michael S. Tsirkin" , Marcel Apfelbaum , Richard Henderson Date: Mon, 8 Jan 2018 15:02:31 -0300 Message-Id: <20180108180231.21122-8-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180108180231.21122-1-f4bug@amsat.org> References: <20180108180231.21122-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::243 Subject: [Qemu-devel] [PATCH 7/7] i386/pc: use the QEMU_ALIGNED() macro 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: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Marcel Apfelbaum Reviewed-by: Richard Henderson --- hw/i386/pc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 3fcf318a95..85d9454c71 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -93,12 +93,12 @@ struct e820_entry { uint64_t address; uint64_t length; uint32_t type; -} QEMU_PACKED __attribute((__aligned__(4))); +} QEMU_PACKED QEMU_ALIGNED(4); =20 struct e820_table { uint32_t count; struct e820_entry entry[E820_NR_ENTRIES]; -} QEMU_PACKED __attribute((__aligned__(4))); +} QEMU_PACKED QEMU_ALIGNED(4); =20 static struct e820_table e820_reserve; static struct e820_entry *e820_table; --=20 2.15.1