WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-ia64-devel] [PATCH] compliation work around for sparsemem

To: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [PATCH] compliation work around for sparsemem
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Wed, 2 May 2007 11:23:11 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 01 May 2007 19:21:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070501092808.GD25200%yamahata@xxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20070501092808.GD25200%yamahata@xxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: mutt-ng/devel-r804 (Debian)
On Tue, May 01, 2007 at 06:28:08PM +0900, Isaku Yamahata wrote:
> sparsemem compilation work around.
> 
> NOTE:
> To compile with CONFIG_SPARSEMEM_MANUAL=y,
> CONFIG_NUMA=y and CONFIG_ACPI_NUMA=y are also needed.
> To compile with CONFIG_DISCONTIGMEM_MANUAL=y,
> CONFIG_DISCONTIG_MEM=y, CONFIG_VIRTUAL_MEM_MAP=y and CONFIG_NUMA=y
> are needed.
> These requirements are from vanilla linux. It's not xen-related issue.

Has this been resolved in newer kernels?

> # HG changeset patch
> # User yamahata@xxxxxxxxxxxxx
> # Date 1177993380 -32400
> # Node ID 9c503e047679028a73faaaaacf98e3614a183c62
> # Parent  b14d777275e39dc51390e614464a1e17be21f12e
> sparsemem compilation work around
> PATCHNAME: sparsemem_compilation_work_around
> 
> Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
> 
> diff -r b14d777275e3 -r 9c503e047679 
> linux-2.6-xen-sparse/include/asm-ia64/maddr.h
> --- a/linux-2.6-xen-sparse/include/asm-ia64/maddr.h   Tue May 01 16:25:36 
> 2007 +0900
> +++ b/linux-2.6-xen-sparse/include/asm-ia64/maddr.h   Tue May 01 13:23:00 
> 2007 +0900
> @@ -65,6 +65,12 @@ machine_to_phys_for_dma(unsigned long ma
>       return phys;
>  }
>  
> +#ifdef CONFIG_SPARSEMEM
> +// When CONFIG_SPARSEMEM=y, pfn_valid() is defined in
> +// linux/include/linux/mmzone.h. Hoever #include <linux/mmzone.h>
> +// causes the header inclusion hell.
> +static inline int pfn_valid(unsigned long pfn);
> +#endif
>  static inline unsigned long
>  mfn_to_local_pfn(unsigned long mfn)
>  {

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel