aboutsummaryrefslogtreecommitdiff
path: root/hdata
diff options
context:
space:
mode:
authorClaudio Carvalho <cclaudio@linux.vnet.ibm.com>2017-10-12 02:03:23 -0300
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-10-15 20:08:14 -0500
commitf0379b84b9088796d61287a3ab31bf5a54519df7 (patch)
treea3c0b10a436f8847cfb1c78299ff1673dac32fbc /hdata
parent5b1c330fd0b08d1244d61e7ef85be9475eef9796 (diff)
downloadskiboot-f0379b84b9088796d61287a3ab31bf5a54519df7.zip
skiboot-f0379b84b9088796d61287a3ab31bf5a54519df7.tar.gz
skiboot-f0379b84b9088796d61287a3ab31bf5a54519df7.tar.bz2
hdata/i2c: add __packed to the host_i2c_hdr structure
This adds __packed to the host_i2c_hdr structure since it defines an offset that refers to the beginning of the structure. Fixes: 41dc3eb4495c451a405974570f604622a3f829ef Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.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 c7f38e9..2e14212 100644
--- a/hdata/i2c.c
+++ b/hdata/i2c.c
@@ -152,7 +152,7 @@ static bool is_zeros(const void *p, size_t size)
struct host_i2c_hdr {
const struct HDIF_array_hdr hdr;
__be32 version;
-};
+} __packed;
int parse_i2c_devs(const struct HDIF_common_hdr *hdr, int idata_index,
struct dt_node *xscom)