diff options
Diffstat (limited to 'include/asm-ia64/page.h')
-rw-r--r-- | include/asm-ia64/page.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/asm-ia64/page.h b/include/asm-ia64/page.h index 947cb72b520e..485759ba9e36 100644 --- a/include/asm-ia64/page.h +++ b/include/asm-ia64/page.h | |||
@@ -101,7 +101,7 @@ do { \ | |||
101 | 101 | ||
102 | #ifdef CONFIG_VIRTUAL_MEM_MAP | 102 | #ifdef CONFIG_VIRTUAL_MEM_MAP |
103 | extern int ia64_pfn_valid (unsigned long pfn); | 103 | extern int ia64_pfn_valid (unsigned long pfn); |
104 | #elif defined(CONFIG_FLATMEM) | 104 | #else |
105 | # define ia64_pfn_valid(pfn) 1 | 105 | # define ia64_pfn_valid(pfn) 1 |
106 | #endif | 106 | #endif |
107 | 107 | ||
@@ -110,12 +110,11 @@ extern struct page *vmem_map; | |||
110 | #ifdef CONFIG_DISCONTIGMEM | 110 | #ifdef CONFIG_DISCONTIGMEM |
111 | # define page_to_pfn(page) ((unsigned long) (page - vmem_map)) | 111 | # define page_to_pfn(page) ((unsigned long) (page - vmem_map)) |
112 | # define pfn_to_page(pfn) (vmem_map + (pfn)) | 112 | # define pfn_to_page(pfn) (vmem_map + (pfn)) |
113 | #else | ||
114 | # include <asm-generic/memory_model.h> | ||
113 | #endif | 115 | #endif |
114 | #endif | 116 | #else |
115 | 117 | # include <asm-generic/memory_model.h> | |
116 | #if defined(CONFIG_FLATMEM) || defined(CONFIG_SPARSEMEM) | ||
117 | /* FLATMEM always configures mem_map (mem_map = vmem_map if necessary) */ | ||
118 | #include <asm-generic/memory_model.h> | ||
119 | #endif | 118 | #endif |
120 | 119 | ||
121 | #ifdef CONFIG_FLATMEM | 120 | #ifdef CONFIG_FLATMEM |