<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
From: Jes Sorensen &lt;jes@wildopensource.com&gt;

Tiny patch to make -mm3 compile on an NUMA box with NR_CPUS &gt;
BITS_PER_LONG.



---

 kernel/sched.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN kernel/sched.c~sched-build-fix kernel/sched.c
--- 25/kernel/sched.c~sched-build-fix	2004-01-24 16:20:40.000000000 -0800
+++ 25-akpm/kernel/sched.c	2004-01-24 16:20:40.000000000 -0800
@@ -3279,7 +3279,7 @@ static void __init arch_init_sched_domai
 		for_each_cpu_mask(j, node-&gt;cpumask) {
 			struct sched_group *cpu = &amp;sched_group_cpus[j];
 
-			cpu-&gt;cpumask = CPU_MASK_NONE;
+			cpus_clear(cpu-&gt;cpumask);
 			cpu_set(j, cpu-&gt;cpumask);
 
 			printk(KERN_INFO "CPU%d\n", j);
@@ -3335,7 +3335,7 @@ static void __init arch_init_sched_domai
 	for_each_cpu_mask(i, all_cpus) {
 		struct sched_group *cpu = &amp;sched_group_cpus[i];
 
-		cpu-&gt;cpumask = CPU_MASK_NONE;
+		cpus_clear(cpu-&gt;cpumask);
 		cpu_set(i, cpu-&gt;cpumask);
 
 		if (!first_cpu)

_
</pre></body></html>