diff options
author | Stewart Smith <stewart@linux.ibm.com> | 2018-05-29 14:54:10 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-10-24 19:02:05 +1100 |
commit | cac09fda28391b43022b9cfbc70aaed2f9ce1a26 (patch) | |
tree | 59791e424da0cd9fe963fe5db15a3a997270b573 /hdata | |
parent | 84ca6d0ce15f539421c3b2d54d0466241505fe0f (diff) | |
download | skiboot-cac09fda28391b43022b9cfbc70aaed2f9ce1a26.zip skiboot-cac09fda28391b43022b9cfbc70aaed2f9ce1a26.tar.gz skiboot-cac09fda28391b43022b9cfbc70aaed2f9ce1a26.tar.bz2 |
hdata/i2c.c: fix building with gcc8
[ Upstream commit 70d544de8739abbc381398cbfd07a6bd6dc8c1a5 ]
hdata/test/../i2c.c:200:1: error: alignment 1 of ‘struct host_i2c_hdr’ is less than 4 [-Werror=packed-not-aligned]
} __packed;
^
Fixes: https://github.com/open-power/skiboot/issues/160
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r-- | hdata/i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/i2c.c b/hdata/i2c.c index 5cb56fa..9bbec66 100644 --- a/hdata/i2c.c +++ b/hdata/i2c.c @@ -197,7 +197,7 @@ static bool is_zeros(const void *p, size_t size) struct host_i2c_hdr { const struct HDIF_array_hdr hdr; __be32 version; -} __packed; +} __packed __align(0x4); int parse_i2c_devs(const struct HDIF_common_hdr *hdr, int idata_index, struct dt_node *xscom) |