Messages in this thread Patch in this message | | | Subject | Re: Uniprocessor Compile error: 2.4.15-pre4 (-tr) in kernel.o (cpu_init()) - Works with SMP | From | Robert Love <> | Date | 13 Nov 2001 23:11:54 -0500 |
| |
On Tue, 2001-11-13 at 16:28, Benjamin LaHaise wrote: > This will fix the link error by moving cpucount into setup.c.
Looks like the patch is reversed. Attached is a reversed version of the aforementioned reversed patch.
--- linux-2.4.15-pre4/arch/i386/kernel/setup.c Mon Nov 12 17:39:00 2001 +++ linux/arch/i386/kernel/setup.c Tue Nov 13 23:08:53 2001 @@ -2806,6 +2807,7 @@ }; unsigned long cpu_initialized __initdata = 0; +int cpucount; /* * cpu_init() initializes state that is per-CPU. Some data is already --- linux-2.4.15-pre4/arch/i386/kernel/smpboot.c Mon Nov 12 17:39:00 2001 +++ linux/arch/i386/kernel/smpboot.c Tue Nov 13 23:08:53 2001 @@ -443,7 +443,7 @@ synchronize_tsc_ap(); } -int cpucount; +extern int cpucount; extern int cpu_idle(void); Robert Love - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |