Skip to contentSkip to conversation

arm: parse_dt_topology() rate is pointer to __be32

PATCH Ben Dooks 1 participant 1 message Oct 11, 2019 Arm (32-bit)

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

From: "Ben Dooks (Codethink)" <[email protected]>

The rate pointer in parse_dt_topology is a pointer to a __be32, not a u32. This fixes the following sparse warning:

arch/arm/kernel/topology.c:128:43: warning: incorrect type in argument 1 (different base types)
arch/arm/kernel/topology.c:128:43: expected restricted __be32 const [usertype] *p
arch/arm/kernel/topology.c:128:43: got unsigned int const [usertype] *[assigned] rate

---

---
 arch/arm/kernel/topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/kernel/topology.c +1 -1
index e27b95f16c04..05d4223d5493 100644
@@ -95,7 +95,7 @@ static void __init parse_dt_topology(void)
 				 GFP_NOWAIT);
 
 	for_each_possible_cpu(cpu) {
-		const u32 *rate;
+		const __be32 *rate;
 		int len;
 
 		/* too early to use cpu->of_node */
Signature · 7 lines
2.23.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel