Re: [PATCH v2 0/6] sched: expel confusing usage of the term "power"

From: Ingo Molnar
Date: Thu Jun 05 2014 - 06:09:20 EST



So I'm hijacking this thread a bit to report a bug in the following
patch:

Author: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
Date: Tue Jun 3 14:59:05 2014 +0200

sched: Move enum CPU_[xxx_]IDLE to private sched.h

The different enum CPU_IDLE, CPU_NOT_IDLE, CPU_NEWLY_IDLE and
CPU_MAX_IDLE_TYPES are only used in kernel/sched/fair.c and
kernel/sched/stats.c.

on x86-64 defconfig it fails to build with:

In file included from
/home/mingo/tip/arch/x86/kernel/asm-offsets.c:9:0:
/home/mingo/tip/include/linux/sched.h:939:24: error:
âCPU_MAX_IDLE_TYPESâ undeclared here (not in a function)
unsigned int lb_count[CPU_MAX_IDLE_TYPES];
^
make[2]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make[1]: *** [prepare0] Error 2
make: *** [sub-make] Error 2

Find below the version that came to me.

Thanks,

Ingo

===========================>