]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
sched: convert struct root_domain to cpumask_var_t, fix
authorIngo Molnar <mingo@elte.hu>
Wed, 26 Nov 2008 13:13:42 +0000 (14:13 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 26 Nov 2008 13:14:07 +0000 (14:14 +0100)
commit1c39194878c09bd88ffc9c9d4c2f01c3397c7aed
tree538139d8ffbcf46a3e8fe3b13f30ee0324d62437
parent1224e376f2a7e3c7ab19ef37099a78597978a696
sched: convert struct root_domain to cpumask_var_t, fix

Mathieu Desnoyers reported this build failure on powerpc:

 kernel/sched.c: In function 'sd_init_NODE':
 kernel/sched.c:7319: error: non-static initialization of a flexible array member
 kernel/sched.c:7319: error: (near initialization for '(anonymous)')

this happens because .span changed to cpumask_var_t, hence
the static CPU_MASK_NONE initializers in the SD_*_INIT
templates are not type-correct anymore.

Remove them, as they default to empty anyway.

Also remove them from IA64, MIPS and SH.

Reported-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/ia64/include/asm/topology.h
arch/mips/include/asm/mach-ip27/topology.h
arch/powerpc/include/asm/topology.h
arch/sh/include/asm/topology.h