diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-10 12:05:16 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-10 12:05:16 +1100 |
commit | c5f0752f6b0b71f1855b908b2f9b2ae6f18a6529 (patch) | |
tree | f589337089ca373f268b03a9ff77762b4942e173 /hdata | |
parent | 71c629140cdb0db42b64595032a3e81f9d44267d (diff) | |
download | skiboot-c5f0752f6b0b71f1855b908b2f9b2ae6f18a6529.zip skiboot-c5f0752f6b0b71f1855b908b2f9b2ae6f18a6529.tar.gz skiboot-c5f0752f6b0b71f1855b908b2f9b2ae6f18a6529.tar.bz2 |
sparse: fix missing endian conversion in hdif pointer
No code change for skiboot as skiboot is BE
hdata/spira.c:43:21: warning: incorrect type in initializer (different base types)
hdata/spira.c:43:21: expected restricted beint32_t [usertype] size
hdata/spira.c:43:21: got int
hdata/spira.c:57:20: warning: incorrect type in initializer (different base types)
hdata/spira.c:57:20: expected restricted beint32_t [usertype] size
hdata/spira.c:57:20: got unsigned long
hdata/spira.c:108:24: warning: incorrect type in initializer (different base types)
hdata/spira.c:108:24: expected restricted beint32_t [usertype] size
hdata/spira.c:108:24: got unsigned long
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r-- | hdata/hdif.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/hdif.h b/hdata/hdif.h index fad7454..ef03522 100644 --- a/hdata/hdif.h +++ b/hdata/hdif.h @@ -73,7 +73,7 @@ struct HDIF_child_ptr { #define HDIF_IDATA_PTR(_offset, _size) \ { \ .offset = CPU_TO_BE32(_offset), \ - .size = _size, \ + .size = CPU_TO_BE32(_size), \ } static inline bool HDIF_check(const void *hdif, const char id[]) |