[Skiboot] [PATCH 10/36] sparse: fix conversion of hdat slca_index

Stewart Smith stewart at linux.vnet.ibm.com
Tue Nov 10 15:18:04 AEDT 2015


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 at linux.vnet.ibm.com>
---
 hdata/vpd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hdata/vpd.c b/hdata/vpd.c
index 585ed9c01313..b317027eee57 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;
 
-- 
2.1.4



More information about the Skiboot mailing list