Re: Voyager phys_cpu_present_map compile error

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: James Bottomley
Date: Friday, April 25, 2008 - 9:33 am

On Fri, 2008-04-25 at 19:17 +0300, Adrian Bunk wrote:

Oh ... oops ... unfortunately one I wouldn't spot in a voyager build.

This should be the corrected patch; thanks.

James

---

diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index c0c68c1..13ea170 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -12,6 +12,7 @@
 #include <asm/mpspec.h>
 #include <asm/apicdef.h>
 
+#ifdef CONFIG_X86_SMP
 unsigned int num_processors;
 unsigned disabled_cpus __cpuinitdata;
 /* Processor that is doing the boot up */
@@ -23,8 +24,9 @@ EXPORT_PER_CPU_SYMBOL(x86_cpu_to_apicid);
 
 /* Bitmask of physically existing CPUs */
 physid_mask_t phys_cpu_present_map;
+#endif
 
-#if defined(CONFIG_HAVE_SETUP_PER_CPU_AREA) && defined(CONFIG_SMP)
+#if defined(CONFIG_HAVE_SETUP_PER_CPU_AREA) && defined(CONFIG_X86_SMP)
 /*
  * Copy data used in early init routines from the initial arrays to the
  * per cpu data areas.  These arrays then become expendable and the


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Voyager phys_cpu_present_map compile error, Adrian Bunk, (Sun Apr 20, 5:02 pm)
Re: Voyager phys_cpu_present_map compile error, Adrian Bunk, (Mon Apr 21, 1:53 am)
Re: Voyager phys_cpu_present_map compile error, Ingo Molnar, (Mon Apr 21, 5:00 am)
Re: Voyager phys_cpu_present_map compile error, H. Peter Anvin, (Mon Apr 21, 5:55 am)
Re: Voyager phys_cpu_present_map compile error, H. Peter Anvin, (Mon Apr 21, 6:00 am)
Re: Voyager phys_cpu_present_map compile error, Adrian Bunk, (Mon Apr 21, 6:27 am)
Status of SGI 320/540 (Visual Workstation) support?, Adrian Bunk, (Mon Apr 21, 7:10 am)
Re: Voyager phys_cpu_present_map compile error, James Bottomley, (Mon Apr 21, 8:42 am)
Re: Voyager phys_cpu_present_map compile error, James Bottomley, (Mon Apr 21, 8:58 am)
Re: Voyager phys_cpu_present_map compile error, Ingo Molnar, (Mon Apr 21, 12:51 pm)
Re: Voyager phys_cpu_present_map compile error, Ingo Molnar, (Mon Apr 21, 12:55 pm)
Re: Voyager phys_cpu_present_map compile error, H. Peter Anvin, (Mon Apr 21, 1:03 pm)
Re: Voyager phys_cpu_present_map compile error, Ingo Molnar, (Mon Apr 21, 1:03 pm)
Re: Voyager phys_cpu_present_map compile error, Adrian Bunk, (Mon Apr 21, 1:09 pm)
Re: Voyager phys_cpu_present_map compile error, H. Peter Anvin, (Mon Apr 21, 1:10 pm)
Re: Voyager phys_cpu_present_map compile error, Ingo Molnar, (Mon Apr 21, 1:11 pm)
Re: Voyager phys_cpu_present_map compile error, Ingo Molnar, (Mon Apr 21, 1:13 pm)
Re: Voyager phys_cpu_present_map compile error, Ingo Molnar, (Mon Apr 21, 1:14 pm)
Re: Voyager phys_cpu_present_map compile error, Adrian Bunk, (Mon Apr 21, 1:26 pm)
Re: Voyager phys_cpu_present_map compile error, Ingo Molnar, (Mon Apr 21, 1:29 pm)
Re: Voyager phys_cpu_present_map compile error, Adrian Bunk, (Mon Apr 21, 2:02 pm)
Re: Voyager phys_cpu_present_map compile error, James Bottomley, (Mon Apr 21, 2:57 pm)
Re: Voyager phys_cpu_present_map compile error, Ingo Molnar, (Mon Apr 21, 3:31 pm)
Re: Voyager phys_cpu_present_map compile error, James Bottomley, (Mon Apr 21, 4:08 pm)
Re: Status of SGI 320/540 (Visual Workstation) support?, Andrey Panin, (Mon Apr 21, 11:19 pm)
Re: Voyager phys_cpu_present_map compile error, Andrew Morton, (Tue Apr 22, 6:29 am)
Re: Voyager phys_cpu_present_map compile error, Andy Whitcroft, (Tue Apr 22, 8:25 am)
Re: Voyager phys_cpu_present_map compile error, Pavel Machek, (Wed Apr 23, 1:53 am)
Re: Voyager phys_cpu_present_map compile error, James Bottomley, (Fri Apr 25, 7:50 am)
Re: Voyager phys_cpu_present_map compile error, Adrian Bunk, (Fri Apr 25, 9:17 am)
Re: Voyager phys_cpu_present_map compile error, James Bottomley, (Fri Apr 25, 9:33 am)
Re: Voyager phys_cpu_present_map compile error, Pavel Machek, (Sat Apr 26, 12:43 am)
Re: Voyager phys_cpu_present_map compile error, H. Peter Anvin, (Sat Apr 26, 5:44 pm)
Re: Voyager phys_cpu_present_map compile error, Adrian Bunk, (Sat Apr 26, 6:06 pm)
Re: Voyager phys_cpu_present_map compile error, H. Peter Anvin, (Sat Apr 26, 6:45 pm)
Re: Voyager phys_cpu_present_map compile error, Ingo Molnar, (Mon Apr 28, 10:59 am)
Re: Voyager phys_cpu_present_map compile error, James Bottomley, (Mon Apr 28, 12:09 pm)