This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] smp_processor_id() missing when compiling linux-2.6-xen.

To: Jacob Gorm Hansen <jacobg@xxxxxxx>
Subject: Re: [Xen-devel] smp_processor_id() missing when compiling linux-2.6-xen.hg without SMP
From: Thomas Schwinge <tschwinge@xxxxxxx>
Date: Fri, 6 Jan 2006 17:40:45 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 06 Jan 2006 22:48:06 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <e08041f30601030220rdad85b5g6a5efb0a52f2bf74@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <e08041f30601030220rdad85b5g6a5efb0a52f2bf74@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6+20040523i

Building <URL:http://xenbits.xensource.com/linux-2.6-xen.hg> with a
custom .config without SMP support for example, fails like this for me:

  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

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 <linux/init.h>
>  #include <linux/sysdev.h>
> +#include <linux/smp.h>
>  #include <asm/dma.h>
>  /*

This patch also fixes the problem for me.


Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>