ARM: cpu topology: fix warning
PATCH 1/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
--- arch/arm/include/asm/topology.h | 2 +- arch/arm/kernel/topology.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/include/asm/topology.h +1 -1
@@ -25,7 +25,7 @@ extern struct cputopo_arm cpu_topology[NR_CPUS];void init_cpu_topology (void );void store_cpu_topology (unsigned int cpuid); -const struct cpumask *cpu_coregroup_mask (unsigned int cpu); +const struct cpumask *cpu_coregroup_mask (int cpu);#else
arch/arm/kernel/topology.c +1 -1
@@ -43,7 +43,7 @@struct cputopo_arm cpu_topology[NR_CPUS ]; -const struct cpumask *cpu_coregroup_mask (unsigned int cpu) +const struct cpumask *cpu_coregroup_mask (int cpu) {return &cpu_topology[cpu].core_sibling; }
Signature · 1 line
1.7.4.1
PATCH 1/1 ARM: cpu topology: fix warning
Hi Vincent,
Quoted 4 lines · Vincent Guittot
kernel/sched.c:7354:2: warning: initialization from incompatible pointer typeAlign
cpu_coregroup_maskprototype interface withsched_domain_mask_ftypedef use int cpu instead of unsigned int cpu
Not sure I parse the commit message...
Quoted 5 lines
Signed-off-by Vincent Guittot <[email protected]>--- arch/arm/include/asm/topology.h | 2 +- arch/arm/kernel/topology.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
... but this fixes the warning for me:
Thanks,
Will
PATCH 1/1 ARM: cpu topology: fix warning
In reply to Vincent GuittotHi Vincent,
Quoted 39 lines · Vincent Guittot
kernel/sched.c:7354:2: warning: initialization from incompatible pointer typeAlign
cpu_coregroup_maskprototype interface withsched_domain_mask_ftypedef use int cpu instead of unsigned int cpuSigned-off-by Vincent Guittot <[email protected]>--- arch/arm/include/asm/topology.h | 2 +- arch/arm/kernel/topology.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)arch/arm/include/asm/topology.h +1
-1@@ -25,7 +25,7 @@ extern struct cputopo_arm cpu_topology[NR_CPUS];void init_cpu_topology (void );void store_cpu_topology (unsigned int cpuid); -const struct cpumask *cpu_coregroup_mask (unsigned int cpu); +const struct cpumask *cpu_coregroup_mask (int cpu);#else arch/arm/kernel/topology.c +1
-1@@ -43,7 +43,7 @@struct cputopo_arm cpu_topology[NR_CPUS ]; -const struct cpumask *cpu_coregroup_mask (unsigned int cpu) +const struct cpumask *cpu_coregroup_mask (int cpu) {return &cpu_topology[cpu].core_sibling; }Signature · 1 line
1.7.4.1
I'm still seeing this warning in mainline. What is your plan for merging this fix?
Cheers,
Will
PATCH 1/1 ARM: cpu topology: fix warning
Hi Will,
The patch has just been submitted to Russell's patch tracking system
Sorry for the delay
Cheers,
Vincent
Quoted 50 lines · Will Deacon
Hi Vincent,
Quoted 38 lines · Vincent Guittot
kernel/sched.c:7354:2: warning: initialization from incompatible pointer typeAlign
cpu_coregroup_maskprototype interface withsched_domain_mask_ftypedef use int cpu instead of unsigned int cpuSigned-off-by Vincent Guittot <[email protected]>---
?arch/arm/include/asm/topology.h | ? ?2 +-
?arch/arm/kernel/topology.c ? ? ?| ? ?2 +-
?2 files changed, 2 insertions(+), 2 deletions(-)arch/arm/include/asm/topology.h +1
-1@@ -25,7 +25,7 @@ extern struct cputopo_arm cpu_topology[NR_CPUS]; ?void init_cpu_topology(void); ?void store_cpu_topology(unsigned int cpuid); -const struct cpumask *cpu_coregroup_mask (unsigned int cpu); +const struct cpumask *cpu_coregroup_mask (int cpu);?#else
arch/arm/kernel/topology.c +1
-2@@ -43,7 +43,7 @@ ?struct cputopo_arm cpu_topology[NR_CPUS]; -const struct cpumask *cpu_coregroup_mask (unsigned int cpu) +const struct cpumask *cpu_coregroup_mask (int cpu) ?{ ? ? ? return &cpu_topology[cpu].core_sibling; ?} --Quoted 1 line
1.7.4.1
I'm still seeing this warning in mainline. What is your plan for merging this fix?
Cheers,
Will