[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-ia64-devel] [PATCH] compliation work around for sparsemem
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |