[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [IA64] Compliation work around for sparsemem



# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1178223281 21600
# Node ID a141484a91d0c420f1227e0914d61aaf74fb406b
# Parent  eff2bcaeda64f7abafe6a1539d0f86728e29b09e
[IA64] Compliation work around for sparsemem

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 linux-2.6-xen-sparse/include/asm-ia64/maddr.h |    9 +++++++++
 1 files changed, 9 insertions(+)

diff -r eff2bcaeda64 -r a141484a91d0 
linux-2.6-xen-sparse/include/asm-ia64/maddr.h
--- a/linux-2.6-xen-sparse/include/asm-ia64/maddr.h     Thu May 03 14:10:19 
2007 -0600
+++ b/linux-2.6-xen-sparse/include/asm-ia64/maddr.h     Thu May 03 14:14:41 
2007 -0600
@@ -65,6 +65,15 @@ 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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.