aboutsummaryrefslogtreecommitdiff
path: root/hdata
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 11:55:25 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 11:55:25 +1100
commit71c629140cdb0db42b64595032a3e81f9d44267d (patch)
tree9a4adb2147bd48e4df6098707d3d43a534eff9f1 /hdata
parent54104305325788ec01695d4f58fb7379d8956a5d (diff)
downloadskiboot-71c629140cdb0db42b64595032a3e81f9d44267d.zip
skiboot-71c629140cdb0db42b64595032a3e81f9d44267d.tar.gz
skiboot-71c629140cdb0db42b64595032a3e81f9d44267d.tar.bz2
sparse: fix cast that discarded endian annotation in hdata/paca.c
hdata/paca.c:115:33: warning: incorrect type in argument 1 (different base types) hdata/paca.c:115:33: expected restricted beint32_t [usertype] be_val hdata/paca.c:115:33: got unsigned int [unsigned] [usertype] <noident> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r--hdata/paca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/paca.c b/hdata/paca.c
index 6f5a1b4..145b825 100644
--- a/hdata/paca.c
+++ b/hdata/paca.c
@@ -112,7 +112,7 @@ static struct dt_node *find_cpu_by_hardware_proc_id(struct dt_node *root,
if (!prop)
return NULL;
- if (be32_to_cpu(*(u32 *)prop->prop) == hw_proc_id)
+ if (be32_to_cpu(*(be32 *)prop->prop) == hw_proc_id)
return i;
}
return NULL;