Skip to content

Commit

Permalink
ARM: 8922/1: parse_dt_topology() rate is pointer to __be32
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
  • Loading branch information
Ben Dooks (Codethink) authored and Russell King committed Oct 31, 2019
1 parent 83dc1d9 commit 3b12952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/kernel/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 3b12952

Please sign in to comment.