From 5febcbe99d4766cc383909c447e002e63d8b4592 Mon Sep 17 00:00:00 2001 From: Christopher Yeoh Date: Tue, 29 May 2012 15:06:27 -0700 Subject: Cross Memory Attach: make it Kconfigurable Add a Kconfig option to allow people who don't want cross memory attach to not have it included in their build. Signed-off-by: Chris Yeoh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- mm/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mm/Makefile') diff --git a/mm/Makefile b/mm/Makefile index ccecbf9818f5..a156285ce88d 100644 --- a/mm/Makefile +++ b/mm/Makefile @@ -5,8 +5,11 @@ 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 pagewalk.o pgtable-generic.o \ - process_vm_access.o + vmalloc.o pagewalk.o pgtable-generic.o + +ifdef CONFIG_CROSS_MEMORY_ATTACH +mmu-$(CONFIG_MMU) += process_vm_access.o +endif obj-y := filemap.o mempool.o oom_kill.o fadvise.o \ maccess.o page_alloc.o page-writeback.o \ -- cgit v1.2.3