mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[IA64] Compliation work around for sparsemem
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
This commit is contained in:
1 parent
ffca2f0a46
commit
36723573e5
1 file changed
+9
@@ -65,6 +65,15 @@ machine_to_phys_for_dma(unsigned long machine)
|
||||
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)
|
||||
{
|
||||
|
||||