summaryrefslogtreecommitdiffstats
path: root/hdata
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2018-05-29 14:54:10 +1000
committerStewart Smith <stewart@linux.ibm.com>2018-05-29 14:57:14 +1000
commit70d544de8739abbc381398cbfd07a6bd6dc8c1a5 (patch)
tree30b3044e6b07236348659c4ad7a52db00c5dac7b /hdata
parent44d0f8638bc1d35baccd59a154298fef0fb51775 (diff)
downloadblackbird-skiboot-70d544de8739abbc381398cbfd07a6bd6dc8c1a5.tar.gz
blackbird-skiboot-70d544de8739abbc381398cbfd07a6bd6dc8c1a5.zip
hdata/i2c.c: fix building with gcc8
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/i2c.c b/hdata/i2c.c
index 5cb56faf..9bbec665 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)
OpenPOWER on IntegriCloud