aboutsummaryrefslogtreecommitdiff
path: root/hdata
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 12:05:16 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 12:05:16 +1100
commitc5f0752f6b0b71f1855b908b2f9b2ae6f18a6529 (patch)
treef589337089ca373f268b03a9ff77762b4942e173 /hdata
parent71c629140cdb0db42b64595032a3e81f9d44267d (diff)
downloadskiboot-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.h2
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[])