[Skiboot] [PATCH stable 06/14] sparse: fix beint32_t degrades to int in hdata/pcia.c
Stewart Smith
stewart at linux.vnet.ibm.com
Thu Jan 21 14:51:13 AEDT 2016
commit 54104305325788ec01695d4f58fb7379d8956a5d upstream
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