diff mbox series

arm: parse_dt_topology() rate is pointer to __be32

Message ID 20191011125056.17586-1-ben.dooks@codethink.co.uk (mailing list archive)
State Mainlined
Commit 3b129524080bcb1bdcd9a7f66dbcf5bea899a291
Headers show
Series arm: parse_dt_topology() rate is pointer to __be32 | expand

Commit Message

Ben Dooks Oct. 11, 2019, 12:50 p.m. UTC
From: "Ben Dooks (Codethink)" <ben.dooks@codethink.co.uk>

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

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---

Cc: Russell King <linux@armlinux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
---
 arch/arm/kernel/topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c
index e27b95f16c04..05d4223d5493 100644
--- a/arch/arm/kernel/topology.c
+++ b/arch/arm/kernel/topology.c
@@ -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 */