* arm: parse_dt_topology() rate is pointer to __be32
@ 2019-10-11 12:50 Ben Dooks
0 siblings, 0 replies; 2+ messages in thread
From: Ben Dooks @ 2019-10-11 12:50 UTC (permalink / raw)
To: ben.dooks, patches; +Cc: Russell King, linux-arm-kernel
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 --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 */
--
2.23.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* arm: parse_dt_topology() rate is pointer to __be32
@ 2019-10-11 12:56 Ben Dooks
0 siblings, 0 replies; 2+ messages in thread
From: Ben Dooks @ 2019-10-11 12:56 UTC (permalink / raw)
To: ben.dooks, patches; +Cc: Russell King, linux-arm-kernel
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>
---
KernelVersion: 5.4-rc2
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 --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 */
--
2.23.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-11 12:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-11 12:56 arm: parse_dt_topology() rate is pointer to __be32 Ben Dooks
-- strict thread matches above, loose matches on Subject: below --
2019-10-11 12:50 Ben Dooks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox