Warning in -next w/ "ARM: 7011/1: Add ARM cpu topology definition"
Hi Vincent,
When compiling next with SCHED_MC enabled I get a warning from sched.c because your topology functions (declared in arch/arm/include/asm/topology.h) take unsigned int cpu rather than int cpu:
kernel/sched.c:7354:2: warning: initialization from incompatible pointer type
7353 #ifdef CONFIG_SCHED_MC
7354 { sd_init_MC, cpu_coregroup_mask, },
7355 #endif
Apologies if you've already got a fix queued for this,
Will
Hi Will,
Thanks for pointing out this.
I have based my cpu topology patch on sh one which also uses unsigned int and haven't noticed this warning during compilation
I'm going to fix this
Vincent
Quoted 16 lines · Will Deacon
Hi Vincent,
When compiling next with
SCHED_MCenabled I get a warning fromsched.cbecause your topology functions (declared inarch/arm/include/asm/topology.h) take unsigned int cpu rather than int cpu:
kernel/sched.c:7354:2: warning: initialization from incompatible pointer type7353 #ifdef
CONFIG_SCHED_MC
7354 ? ? ? ? {sd_init_MC,cpu_coregroup_mask, },
7355 #endifApologies if you've already got a fix queued for this,
Will