# 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 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 +// 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) {