]>
Commit | Line | Data |
---|---|---|
c0fa3f59 JR |
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" | |
10 | ||
11 | From: Andrew Morton <akpm@osdl.org> | |
12 | ||
13 | Backport for_each_possible_cpu() into 2.6.16. Fixes the alpha build, and any | |
14 | future occurrences. | |
15 | ||
16 | ||
17 | Signed-off-by: Andrew Morton <akpm@osdl.org> | |
18 | --- | |
19 | ||
20 | include/linux/cpumask.h | 1 + | |
21 | 1 files changed, 1 insertion(+) | |
22 | ||
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 | |
25 | @@ -408,6 +408,7 @@ | |
26 | }) | |
27 | ||
38fc8207 JR |
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) | |
c0fa3f59 JR |
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) | |
32 | ||
33 | - | |
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/ |