summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/mm.h
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2006-11-30 13:53:54 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-11-30 13:53:54 +0000
commit3ff1559eae70d5fb542eaa087389223dce4e364f (patch)
tree65762e5f8faf3efc4771cedcfd9ae9b4c2ec958c /arch/arm/mm/mm.h
parent5cd372e170f1827164e3bd267dff80962ded49d6 (diff)
downloadop-kernel-dev-3ff1559eae70d5fb542eaa087389223dce4e364f.zip
op-kernel-dev-3ff1559eae70d5fb542eaa087389223dce4e364f.tar.gz
[ARM] Fix nommu build
Fix warnings and errors in arch/arm/mm for nommu build. Remove commented out function prototype in pgtable-nommu.h Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/mm.h')
-rw-r--r--arch/arm/mm/mm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mm/mm.h b/arch/arm/mm/mm.h
index bb2bc9a..a44e309 100644
--- a/arch/arm/mm/mm.h
+++ b/arch/arm/mm/mm.h
@@ -1,4 +1,7 @@
/* the upper-most page table pointer */
+
+#ifdef CONFIG_MMU
+
extern pmd_t *top_pmd;
#define TOP_PTE(x) pte_offset_kernel(top_pmd, x)
@@ -13,6 +16,8 @@ static inline pmd_t *pmd_off_k(unsigned long virt)
return pmd_off(pgd_offset_k(virt), virt);
}
+#endif
+
struct map_desc;
struct meminfo;
struct pglist_data;
OpenPOWER on IntegriCloud