diff mbox

[27/36] sparse: fix cast that discarded endian annotation in hdata/paca.c

Message ID 1447129110-21600-28-git-send-email-stewart@linux.vnet.ibm.com
State Accepted
Headers show

Commit Message

Stewart Smith Nov. 10, 2015, 4:18 a.m. UTC
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>
---
 hdata/paca.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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;