[Skiboot] [PATCH 27/36] sparse: fix cast that discarded endian annotation in hdata/paca.c
Stewart Smith
stewart at linux.vnet.ibm.com
Tue Nov 10 15:18:21 AEDT 2015
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 at linux.vnet.ibm.com>
---
hdata/paca.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hdata/paca.c b/hdata/paca.c
index 6f5a1b480dd3..145b825ddc6d 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;
--
2.1.4
More information about the Skiboot
mailing list