[Skiboot] [PATCH 26/36] sparse: fix beint32_t degrades to int in hdata/pcia.c
Stewart Smith
stewart at linux.vnet.ibm.com
Tue Nov 10 15:18:20 AEDT 2015
hdata/pcia.c:32:37: warning: restricted beint32_t degrades to integer
No resulting code change for skiboot as BE
Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
hdata/pcia.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hdata/pcia.c b/hdata/pcia.c
index 4495fbe7831f..8d114377e13c 100644
--- a/hdata/pcia.c
+++ b/hdata/pcia.c
@@ -29,7 +29,7 @@
static unsigned int pcia_index(const void *pcia)
{
return (pcia - (void *)get_hdif(&spira.ntuples.pcia, "SPPCIA"))
- / spira.ntuples.pcia.alloc_len;
+ / be32_to_cpu(spira.ntuples.pcia.alloc_len);
}
static const struct sppcia_cpu_thread *find_tada(const void *pcia,
--
2.1.4
More information about the Skiboot
mailing list