direct-io.hg

changeset 15089:a141484a91d0

[IA64] Compliation work around for sparsemem

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Thu May 03 14:14:41 2007 -0600 (2007-05-03)
parents eff2bcaeda64
children 204046d99562
files linux-2.6-xen-sparse/include/asm-ia64/maddr.h
line diff
     1.1 --- a/linux-2.6-xen-sparse/include/asm-ia64/maddr.h	Thu May 03 14:10:19 2007 -0600
     1.2 +++ b/linux-2.6-xen-sparse/include/asm-ia64/maddr.h	Thu May 03 14:14:41 2007 -0600
     1.3 @@ -65,6 +65,15 @@ machine_to_phys_for_dma(unsigned long ma
     1.4  	return phys;
     1.5  }
     1.6  
     1.7 +#ifdef CONFIG_SPARSEMEM
     1.8 +/*
     1.9 + * When CONFIG_SPARSEMEM=y, pfn_valid() is defined in
    1.10 + * linux/include/linux/mmzone.h. Hoever #include <linux/mmzone.h>
    1.11 + * causes the header inclusion hell.
    1.12 + */
    1.13 +static inline int pfn_valid(unsigned long pfn);
    1.14 +#endif
    1.15 +
    1.16  static inline unsigned long
    1.17  mfn_to_local_pfn(unsigned long mfn)
    1.18  {