drivers: staging: android: Kconfig: add depends on MMU for ANDROID_BINDER_IPC
authorChen Gang <gang.chen@asianux.com>
Mon, 2 Sep 2013 09:11:57 +0000 (17:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Sep 2013 14:47:39 +0000 (07:47 -0700)
ANDROID_BINDER_IPC used the functions which need depend on MMU, so need
let it depend on MMU too, or compiling fails.

The related error:

  drivers/built-in.o: In function `binder_update_page_range':
  drivers/staging/android/binder.c:599: undefined reference to `map_vm_area'
  drivers/staging/android/binder.c:626: undefined reference to `zap_page_range'
  drivers/built-in.o: In function `binder_mmap':
  drivers/staging/android/binder.c:2744: undefined reference to `get_vm_area'

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/Kconfig

index c0c95be0f969de825119ce2a6ee535fd6668a63b..85fc94b2e0f78b319b1c8281c18d999242adbcc4 100644 (file)
@@ -10,6 +10,7 @@ if ANDROID
 
 config ANDROID_BINDER_IPC
        bool "Android Binder IPC Driver"
+       depends on MMU
        default n
        ---help---
          Binder is used in Android for both communication between processes,