1 * Ernst Herzberg wrote:
2 > arch/alpha/kernel/setup.c: In function `register_cpus':
3 > arch/alpha/kernel/setup.c:486: warning: implicit declaration of function `for_each_possible_cpu'
4 > arch/alpha/kernel/setup.c:486: error: syntax error before '{' token
5 > arch/alpha/kernel/setup.c:488: error: `p' undeclared (first use in this function)
6 > arch/alpha/kernel/setup.c:488: error: (Each undeclared identifier is reported only once
7 > arch/alpha/kernel/setup.c:488: error: for each function it appears in.)
8 > arch/alpha/kernel/setup.c: At top level:
9 > arch/alpha/kernel/setup.c:492: error: syntax error before "return"
11 From: Andrew Morton <akpm@osdl.org>
13 Backport for_each_possible_cpu() into 2.6.16. Fixes the alpha build, and any
17 Signed-off-by: Andrew Morton <akpm@osdl.org>
20 include/linux/cpumask.h | 1 +
21 1 files changed, 1 insertion(+)
23 --- a/include/linux/cpumask.h 2006-04-24 19:28:56.000000000 +0200
24 +++ b/include/linux/cpumask.h 2006-04-24 19:29:21.000000000 +0200
28 #define for_each_cpu(cpu) for_each_cpu_mask((cpu), cpu_possible_map)
29 +#define for_each_possible_cpu(cpu) for_each_cpu_mask((cpu), cpu_possible_map)
30 #define for_each_online_cpu(cpu) for_each_cpu_mask((cpu), cpu_online_map)
31 #define for_each_present_cpu(cpu) for_each_cpu_mask((cpu), cpu_present_map)
34 To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
35 the body of a message to majordomo@vger.kernel.org
36 More majordomo info at http://vger.kernel.org/majordomo-info.html
37 Please read the FAQ at http://www.tux.org/lkml/