Skip to contentSkip to conversation

Warning in -next w/ "ARM: 7011/1: Add ARM cpu topology definition"

DISCUSSION Will Deacon 2 participants 2 messages Oct 14, 2011

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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_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