aboutsummaryrefslogtreecommitdiff
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>2016-01-21 15:25:08 +1100
commit2392236fea6f8f4be37cbaa12f9bac8248f25d55 (patch)
tree56cdfaa608625d770af245174dd82b6902512e7d
parent6a9c0af912574a8d5f298d8f1c3a4ff8d8b753a2 (diff)
downloadskiboot-2392236fea6f8f4be37cbaa12f9bac8248f25d55.zip
skiboot-2392236fea6f8f4be37cbaa12f9bac8248f25d55.tar.gz
skiboot-2392236fea6f8f4be37cbaa12f9bac8248f25d55.tar.bz2
sparse: fix beint32_t degrades to int in hdata/pcia.c
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@linux.vnet.ibm.com>
-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,