Messages in this thread Patch in this message | | | From | David Howells <> | Subject | [PATCH 2/4] NOMMU: There are no pagetables for walk_page_range() in NOMMU mode | Date | Thu, 24 Sep 2009 12:33:37 +0100 |
| |
walk_page_range() can't walk the page tables in NOMMU mode, so make it unavailable in such circumstances.
Signed-off-by: David Howells <dhowells@redhat.com> ---
include/linux/mm.h | 3 +++ mm/Makefile | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/include/linux/mm.h b/include/linux/mm.h index 23e7fd6..17dc39f 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -750,6 +750,7 @@ unsigned long unmap_vmas(struct mmu_gather **tlb, unsigned long end_addr, unsigned long *nr_accounted, struct zap_details *); +#ifdef CONFIG_MMU /** * mm_walk - callbacks for walk_page_range * @pgd_entry: if set, called for each non-empty PGD (top-level) entry @@ -772,6 +773,8 @@ struct mm_walk { int walk_page_range(unsigned long addr, unsigned long end, struct mm_walk *walk); +#endif + void free_pgd_range(struct mmu_gather *tlb, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling); int copy_page_range(struct mm_struct *dst, struct mm_struct *src, diff --git a/mm/Makefile b/mm/Makefile index 88193d7..5ac31a1 100644 --- a/mm/Makefile +++ b/mm/Makefile @@ -5,14 +5,14 @@ mmu-y := nommu.o mmu-$(CONFIG_MMU) := fremap.o highmem.o madvise.o memory.o mincore.o \ mlock.o mmap.o mprotect.o mremap.o msync.o rmap.o \ - vmalloc.o + vmalloc.o pagewalk.o obj-y := bootmem.o filemap.o mempool.o oom_kill.o fadvise.o \ maccess.o page_alloc.o page-writeback.o \ readahead.o swap.o truncate.o vmscan.o shmem.o \ prio_tree.o util.o mmzone.o vmstat.o backing-dev.o \ page_isolation.o mm_init.o mmu_context.o \ - pagewalk.o $(mmu-y) + $(mmu-y) obj-y += init-mm.o obj-$(CONFIG_BOUNCE) += bounce.o
| |