From 1987ba56c6031d725c2a5af6d59074c4f73a1a80 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Tue, 10 Nov 2015 12:21:06 +1100 Subject: sparse: fix endian conversion for MDST table hdata/spira.c:94:25: warning: incorrect type in initializer (different base types) hdata/spira.c:94:25: expected unsigned long long [unsigned] [usertype] addr hdata/spira.c:94:25: got restricted beint64_t [usertype] hdata/spira.c:95:25: warning: incorrect type in initializer (different base types) hdata/spira.c:95:25: expected unsigned int [unsigned] [usertype] type hdata/spira.c:95:25: got restricted beint32_t [usertype] hdata/spira.c:96:25: warning: incorrect type in initializer (different base types) hdata/spira.c:96:25: expected unsigned int [unsigned] [usertype] size hdata/spira.c:96:25: got restricted beint32_t [usertype] hdata/spira.c:99:25: warning: incorrect type in initializer (different base types) hdata/spira.c:99:25: expected unsigned long long [unsigned] [usertype] addr hdata/spira.c:99:25: got restricted beint64_t [usertype] hdata/spira.c:100:25: warning: incorrect type in initializer (different base types) hdata/spira.c:100:25: expected unsigned int [unsigned] [usertype] type hdata/spira.c:100:25: got restricted beint32_t [usertype] hdata/spira.c:101:25: warning: incorrect type in initializer (different base types) hdata/spira.c:101:25: expected unsigned int [unsigned] [usertype] size hdata/spira.c:101:25: got restricted beint32_t [usertype] This also means we use proper conversions in fsp-mdst-table.c This means no actual change for skiboot as it's BE. Signed-off-by: Stewart Smith --- include/fsp-mdst-table.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/fsp-mdst-table.h') diff --git a/include/fsp-mdst-table.h b/include/fsp-mdst-table.h index 21cb88c..5989cdb 100644 --- a/include/fsp-mdst-table.h +++ b/include/fsp-mdst-table.h @@ -40,9 +40,9 @@ * defined in HDAT spec. */ struct dump_mdst_table { - uint64_t addr; - uint32_t type; /* DUMP_SECTION_* */ - uint32_t size; + __be64 addr; + __be32 type; /* DUMP_SECTION_* */ + __be32 size; }; #endif /* __FSPMDST_H */ -- cgit v1.1