staging: ion: Add HAVE_MEMBLOCK config dependency
authorJohn Stultz <john.stultz@linaro.org>
Tue, 17 Dec 2013 05:07:51 +0000 (21:07 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2013 16:57:21 +0000 (08:57 -0800)
The kbuild test robot reported a build issue w/ ION on m68k:

drivers/staging/android/ion/ion.c: In function 'ion_reserve':
drivers/staging/android/ion/ion.c:1526:4: error: implicit declaration of function 'memblock_alloc_base' [-Werror=implicit-function-declaration]
drivers/staging/android/ion/ion.c:1528:11: error: 'MEMBLOCK_ALLOC_ANYWHERE' undeclared (first use in this function)
drivers/staging/android/ion/ion.c:1528:11: note: each undeclared identifier is reported only once for each function it appears in
drivers/staging/android/ion/ion.c:1537:4: error: implicit declaration of function 'memblock_reserve' [-Werror=implicit-function-declaration]
   cc1: some warnings being treated as errors

This is caused by ION using memblock functionality which m68k doesn't support.

This patch adds a HAVE_MEMBLOCK dependency to the ION config.

Acked-by: Colin Cross <ccross@android.com>
Cc: Android Kernel Team <kernel-team@android.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/Kconfig

index b95281eef2aa3451e5b0ea7eae815ee919036b6c..a9a64ea2343fd38953c9fdfe744e0c1ffb3ebc02 100644 (file)
@@ -1,5 +1,6 @@
 menuconfig ION
        bool "Ion Memory Manager"
+       depends on HAVE_MEMBLOCK
        select GENERIC_ALLOCATOR
        select DMA_SHARED_BUFFER
        ---help---