staging: ion: vm_insert_pfn and zap_page_range rely on CONFIG_MMU
authorFabian Frederick <fabf@skynet.be>
Wed, 23 Jul 2014 19:04:38 +0000 (21:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jul 2014 23:36:27 +0000 (16:36 -0700)
Fix following sh-allmodconfig errors reported on kisskb
"
drivers/built-in.o: In function `ion_vm_fault':
ion.c:(.text+0x1f2d8f8): undefined reference to `vm_insert_pfn'
drivers/built-in.o: In function `ion_buffer_sync_for_device':
ion.c:(.text+0x1f316bc): undefined reference to `zap_page_range'
make: *** [vmlinux] Error 1
"

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/Kconfig

index 0a6e4d03c78a38f4410d4e9c42e5159d825ce623..3452346244922d1211b674087641c1009b2c3e0b 100644 (file)
@@ -1,6 +1,6 @@
 menuconfig ION
        bool "Ion Memory Manager"
-       depends on HAVE_MEMBLOCK && HAS_DMA
+       depends on HAVE_MEMBLOCK && HAS_DMA && MMU
        select GENERIC_ALLOCATOR
        select DMA_SHARED_BUFFER
        ---help---