aboutsummaryrefslogtreecommitdiff
path: root/hdata/pcia.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 11:53:25 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 11:53:25 +1100
commit54104305325788ec01695d4f58fb7379d8956a5d (patch)
treebeb491926adf61b44f6b7e14ada618e1a3bad51a /hdata/pcia.c
parent152d5c0376b47ce433f58bf9305c52fbe920ccaf (diff)
downloadskiboot-54104305325788ec01695d4f58fb7379d8956a5d.zip
skiboot-54104305325788ec01695d4f58fb7379d8956a5d.tar.gz
skiboot-54104305325788ec01695d4f58fb7379d8956a5d.tar.bz2
sparse: fix beint32_t degrades to int in hdata/pcia.c
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@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/pcia.c')
-rw-r--r--hdata/pcia.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/pcia.c b/hdata/pcia.c
index 4495fbe..8d11437 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,