Skip to content

Commit 4cbd6b1

Browse files
vingu-linaroRussell King
authored andcommitted
ARM: 7182/1: ARM cpu topology: fix warning
kernel/sched.c:7354:2: warning: initialization from incompatible pointer type Align cpu_coregroup_mask prototype interface with sched_domain_mask_f typedef use int cpu instead of unsigned int cpu Cc: <[email protected]> Signed-off-by: Vincent Guittot <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent b5bed7f commit 4cbd6b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/arm/include/asm/topology.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern struct cputopo_arm cpu_topology[NR_CPUS];
2525

2626
void init_cpu_topology(void);
2727
void store_cpu_topology(unsigned int cpuid);
28-
const struct cpumask *cpu_coregroup_mask(unsigned int cpu);
28+
const struct cpumask *cpu_coregroup_mask(int cpu);
2929

3030
#else
3131

arch/arm/kernel/topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
struct cputopo_arm cpu_topology[NR_CPUS];
4545

46-
const struct cpumask *cpu_coregroup_mask(unsigned int cpu)
46+
const struct cpumask *cpu_coregroup_mask(int cpu)
4747
{
4848
return &cpu_topology[cpu].core_sibling;
4949
}

0 commit comments

Comments
 (0)