aboutsummaryrefslogtreecommitdiff
path: root/hdata/vpd.c
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>2015-11-09 17:37:22 +1100
commit020a741ae22dd70a027918dbb738cb16fed3bb57 (patch)
tree8e58cbbc6875d081aa44c5f8a2e9710a1ead1bc5 /hdata/vpd.c
parentee4481c03173f444dc94af0dc997439454448d9c (diff)
downloadskiboot-020a741ae22dd70a027918dbb738cb16fed3bb57.zip
skiboot-020a741ae22dd70a027918dbb738cb16fed3bb57.tar.gz
skiboot-020a741ae22dd70a027918dbb738cb16fed3bb57.tar.bz2
sparse: fix conversion of hdat slca_index
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>
Diffstat (limited to 'hdata/vpd.c')
-rw-r--r--hdata/vpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/vpd.c b/hdata/vpd.c
index 585ed9c..b317027 100644
--- a/hdata/vpd.c
+++ b/hdata/vpd.c
@@ -556,7 +556,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;