aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-11-09 17:37:22 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-01-21 15:25:08 +1100
commitee16a1bd5be319f8eac23fe5b0daf88e183a6144 (patch)
tree24a79473a28d14e26a8e997ecdf1439b8b81756d
parent2392236fea6f8f4be37cbaa12f9bac8248f25d55 (diff)
downloadskiboot-ee16a1bd5be319f8eac23fe5b0daf88e183a6144.zip
skiboot-ee16a1bd5be319f8eac23fe5b0daf88e183a6144.tar.gz
skiboot-ee16a1bd5be319f8eac23fe5b0daf88e183a6144.tar.bz2
sparse: fix conversion of hdat slca_index
commit 020a741ae22dd70a027918dbb738cb16fed3bb57 upstream No code changes as skiboot is BE. hdata/vpd.c:559:38: warning: incorrect type in argument 1 (different base types) hdata/vpd.c:559:38: expected unsigned short [unsigned] [usertype] slca_index hdata/vpd.c:559:38: got restricted beint16_t const [usertype] slca_index Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--hdata/vpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/vpd.c b/hdata/vpd.c
index 754e5f6..d9ee77c 100644
--- a/hdata/vpd.c
+++ b/hdata/vpd.c
@@ -557,7 +557,7 @@ struct dt_node *dt_add_vpd_node(const struct HDIF_common_hdr *hdr,
first = false;
}
- entry = slca_get_entry(fru_id->slca_index);
+ entry = slca_get_entry(be16_to_cpu(fru_id->slca_index));
if (!entry)
return NULL;