From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Schwinge Subject: Re: smp_processor_id() missing when compiling linux-2.6-xen.hg without SMP Date: Fri, 6 Jan 2006 17:40:45 -0500 Message-ID: <20060106224045.GA27696@fencepost> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jacob Gorm Hansen Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi! Building with a custom .config without SMP support for example, fails like this for me: #v+ [...] LD init/built-in.o LD .tmp_vmlinux1 arch/i386/kernel/built-in.o: In function `i8237A_resume': i8237.c:(.text+0x9d59): undefined reference to `smp_processor_id' i8237.c:(.text+0x9dbf): undefined reference to `smp_processor_id' make: *** [.tmp_vmlinux1] Error 1 #v- On Tue, Jan 03, 2006 at 11:20:57AM +0100, Jacob Gorm Hansen wrote: > I found I needed the patch to arch/i386/kernel/i8237.c below in order > to compile linux-2.6-xen.hg without SMP, or I smp_processor_id() would > be undefined. I am not sure if this is the correct way to fix the > problem though. > $ hg diff arch/i386/kernel/i8237.c > diff -r e0881feac5b9 arch/i386/kernel/i8237.c > --- a/arch/i386/kernel/i8237.c Thu Dec 22 17:28:39 2005 > +++ b/arch/i386/kernel/i8237.c Tue Jan 3 11:20:22 2006 > @@ -7,6 +7,7 @@ > #include > #include > > +#include > #include > > /* This patch also fixes the problem for me. Regards, Thomas