From c5f0752f6b0b71f1855b908b2f9b2ae6f18a6529 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Tue, 10 Nov 2015 12:05:16 +1100 Subject: 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 --- hdata/hdif.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hdata/hdif.h') 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[]) -- cgit v1.1